restic-service 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9930a6fdcb42999f8706c94c9f1ab5cdc18d6267d4507f71b300f38105e46a3
4
- data.tar.gz: f37a495a46e371cf370950b167a24e86af972ce227395ca31e031df7e5b4faba
3
+ metadata.gz: 0e79cbcfacd54151932aa102993a6bddf8831470df7346af6aef06de840b792a
4
+ data.tar.gz: aa3d7e398112d644019eec92ea3d991beac449ea047da6abe5f47c53f0a8ecdf
5
5
  SHA512:
6
- metadata.gz: 32751d9e29ff33629baa4b412cd75e331fc2f8149572b991f964ed074943137e019ebcb360b51d39e5c9473f20a3e6c61814382f16164ef4c40f90a491eabc29
7
- data.tar.gz: 3128e63b8b9a79390df15b6b33172f7221933ebeac88d1ede6c89da5ad51187a72afccb0d198a87472f28ca13b1686dcdb8d66786d6841c3f6028cdcf5b4e894
6
+ metadata.gz: b676682100534d9fc90a2b3187fdf6362e34b46a672888d43a414f58bd663e7b2dbebebd996821a2fc40c8049d57ef9451242d40f15676806133147a947c3fae
7
+ data.tar.gz: fb88a13f3b06cb489ec6fd9bd05981b2875540951a9f7eedd8828d1265e4c702db80312daa5f1233ec349e2ab511434876acab64240e4a5df652fdbfa1659c0b
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /vendor/
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ restic-service (0.4.2)
5
+ thor
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ byebug (9.1.0)
11
+ coderay (1.1.2)
12
+ flexmock (2.3.6)
13
+ method_source (0.9.0)
14
+ minitest (5.10.3)
15
+ pry (0.11.3)
16
+ coderay (~> 1.1.0)
17
+ method_source (~> 0.9.0)
18
+ pry-byebug (3.5.0)
19
+ byebug (~> 9.1)
20
+ pry (~> 0.10)
21
+ rake (10.5.0)
22
+ thor (0.20.0)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ bundler (~> 1.16)
29
+ flexmock
30
+ minitest (~> 5.0)
31
+ pry
32
+ pry-byebug
33
+ rake (~> 10.0)
34
+ restic-service!
35
+
36
+ BUNDLED WITH
37
+ 1.17.1
data/README.md CHANGED
@@ -76,6 +76,34 @@ The target takes the following arguments:
76
76
  cpu_priority: 19
77
77
  ~~~
78
78
 
79
+ ## Target type: rsync
80
+
81
+ The rsync target copies files to another machine. It is meant as a way to use
82
+ this other machine to then snapshot and backup using restic-service.
83
+
84
+ The target takes the following arguments:
85
+
86
+ ~~~ yaml
87
+ - name: name_of_target
88
+ type: rsync
89
+ # The source path (as expected by rsync)
90
+ source: /root/dir/to/backup/
91
+ # The target path (as expected by rsync)
92
+ target: /target/dir/for/backup/
93
+ # Whether rsync should cross filesystem boundaries
94
+ one_file_system: false
95
+ # Filter rules (see rsync man page for --filter)
96
+ filters:
97
+ # Most common filter rule: exclude some files
98
+ - exclude *.o
99
+ # Optional, the IO class. Defaults to 3 (Idle)
100
+ io_class: 3
101
+ # Optional, the IO priority. Unused for IO class 3
102
+ io_priority: 0
103
+ # Optional, the CPU priority. Higher gets less CPU
104
+ cpu_priority: 19
105
+ ~~~
106
+
79
107
  ## Target type: restic-b2
80
108
 
81
109
  The rest-b2 target backs files up using sftp on a B2 bucket.
data/install.sh CHANGED
@@ -13,7 +13,7 @@ source "https://rubygems.org"
13
13
  gem '${PROGRAM}'
14
14
  GEMFILE
15
15
 
16
- bundler install --binstubs --without development --path vendor
16
+ bundler install --binstubs --without development --path vendor --standalone
17
17
  for i in vendor/ruby/*; do
18
18
  gem_home_relative=$i
19
19
  done
@@ -38,7 +38,7 @@ module Restic
38
38
 
39
39
  with_ssh_config do |ssh_config_name|
40
40
  system(Hash['HOME' => home], *nice_commands,
41
- 'rsync', '-a', '--delete-during',
41
+ 'rsync', '-a', '--delete-during', '--delete-excluded',
42
42
  *@filters.map { |arg| "--filter=#{arg}" },
43
43
  *extra_args, @source, "#{ssh_config_name}:#{@target}")
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module Restic
2
2
  module Service
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restic-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-10 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -91,6 +91,7 @@ files:
91
91
  - ".gitignore"
92
92
  - ".travis.yml"
93
93
  - Gemfile
94
+ - Gemfile.lock
94
95
  - LICENSE.txt
95
96
  - README.md
96
97
  - Rakefile