rustic 0.3.2 → 0.4.0
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 +4 -4
- data/.github/workflows/main.yml +0 -1
- data/.tool-versions +1 -1
- data/Gemfile.lock +9 -9
- data/lib/rustic/command_builders/backup.rb +2 -0
- data/lib/rustic/configs/backup.rb +6 -1
- data/lib/rustic/version.rb +1 -1
- data/lib/rustic.rb +1 -1
- data/rustic.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a2895a975759c45775037c5c40001fc66d659c3b7d682637bb368516642bb0e
|
|
4
|
+
data.tar.gz: 7b48f95f98c2b6356f98b34de7a3c1da9f992add66d2d6b72bf15d78704ab869
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6638377cb09f6e07417e9c704c98879a92f435e74da4f407a89b4635d3f3050cc9de9fc1af2f35aa9e603fba94b4cd4c491872d75ef41bb0787d005ce79b070a
|
|
7
|
+
data.tar.gz: cfad3094a990339f242be63989ae6db5b3f4dbc6f7d87a36c498a94831f8f200502697fea71bdc872f7a14a2bfdeb2bd00eef5bb9291c414af279d234a3d5f84
|
data/.github/workflows/main.yml
CHANGED
data/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby 3.
|
|
1
|
+
ruby 3.1.2
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rustic (0.
|
|
4
|
+
rustic (0.4.0)
|
|
5
5
|
async-process (~> 1.3)
|
|
6
6
|
ptools (~> 1.4)
|
|
7
7
|
zeitwerk (~> 2.5)
|
|
@@ -10,11 +10,11 @@ GEM
|
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
12
|
ast (2.4.2)
|
|
13
|
-
async (
|
|
13
|
+
async (2.2.1)
|
|
14
14
|
console (~> 1.10)
|
|
15
|
-
|
|
15
|
+
io-event (~> 1.1.0)
|
|
16
16
|
timers (~> 4.1)
|
|
17
|
-
async-io (1.
|
|
17
|
+
async-io (1.34.0)
|
|
18
18
|
async
|
|
19
19
|
async-process (1.3.1)
|
|
20
20
|
async
|
|
@@ -25,19 +25,19 @@ GEM
|
|
|
25
25
|
rspec-memory (~> 1.0)
|
|
26
26
|
backport (1.2.0)
|
|
27
27
|
benchmark (0.2.0)
|
|
28
|
-
console (1.
|
|
28
|
+
console (1.16.2)
|
|
29
29
|
fiber-local
|
|
30
30
|
diff-lcs (1.4.4)
|
|
31
31
|
docile (1.4.0)
|
|
32
32
|
e2mmap (0.1.0)
|
|
33
33
|
fiber-local (1.0.0)
|
|
34
|
+
io-event (1.1.2)
|
|
34
35
|
jaro_winkler (1.5.4)
|
|
35
36
|
kramdown (2.3.1)
|
|
36
37
|
rexml
|
|
37
38
|
kramdown-parser-gfm (1.1.0)
|
|
38
39
|
kramdown (~> 2.0)
|
|
39
|
-
|
|
40
|
-
nokogiri (1.12.5-x86_64-linux)
|
|
40
|
+
nokogiri (1.13.10-x86_64-linux)
|
|
41
41
|
racc (~> 1.4)
|
|
42
42
|
parallel (1.21.0)
|
|
43
43
|
parser (3.0.2.0)
|
|
@@ -107,10 +107,10 @@ GEM
|
|
|
107
107
|
yard (~> 0.9, >= 0.9.24)
|
|
108
108
|
thor (1.1.0)
|
|
109
109
|
tilt (2.0.10)
|
|
110
|
-
timers (4.3.
|
|
110
|
+
timers (4.3.5)
|
|
111
111
|
unicode-display_width (2.1.0)
|
|
112
112
|
yard (0.9.26)
|
|
113
|
-
zeitwerk (2.
|
|
113
|
+
zeitwerk (2.6.6)
|
|
114
114
|
|
|
115
115
|
PLATFORMS
|
|
116
116
|
x86_64-linux
|
|
@@ -12,6 +12,8 @@ class Rustic::CommandBuilders::Backup
|
|
|
12
12
|
raise Rustic::CommandBuilder::MalformedConfigError, "Backup paths cannot be empty" if @config.paths.empty?
|
|
13
13
|
|
|
14
14
|
[
|
|
15
|
+
"--compression",
|
|
16
|
+
@config.compression_mode,
|
|
15
17
|
"backup",
|
|
16
18
|
@config.one_fs ? "-x" : nil,
|
|
17
19
|
*@config.paths,
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
class Rustic::Configs::Backup
|
|
4
4
|
include Rustic::HooksExt
|
|
5
5
|
|
|
6
|
-
attr_reader :paths, :excluded_paths, :one_fs
|
|
6
|
+
attr_reader :paths, :excluded_paths, :one_fs, :compression_mode
|
|
7
7
|
|
|
8
8
|
def initialize
|
|
9
9
|
@paths = []
|
|
10
10
|
@excluded_paths = []
|
|
11
11
|
@one_fs = false
|
|
12
|
+
@compression_mode = "auto"
|
|
12
13
|
end
|
|
13
14
|
|
|
14
15
|
def backup(*paths)
|
|
@@ -24,4 +25,8 @@ class Rustic::Configs::Backup
|
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
def one_fs! = @one_fs = true
|
|
28
|
+
|
|
29
|
+
def compression(value)
|
|
30
|
+
@compression_mode = value
|
|
31
|
+
end
|
|
27
32
|
end
|
data/lib/rustic/version.rb
CHANGED
data/lib/rustic.rb
CHANGED
data/rustic.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = "DSL for the restic backup tool."
|
|
13
13
|
spec.homepage = "https://github.com/zhulik/rustic"
|
|
14
14
|
spec.license = "MIT"
|
|
15
|
-
spec.required_ruby_version =
|
|
15
|
+
spec.required_ruby_version = [">= 3.0.0"] # rubocop:disable Gemspec/RequiredRubyVersion
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
18
|
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rustic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gleb Sinyavskiy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async-process
|
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
115
|
version: '0'
|
|
116
116
|
requirements: []
|
|
117
|
-
rubygems_version: 3.
|
|
117
|
+
rubygems_version: 3.3.7
|
|
118
118
|
signing_key:
|
|
119
119
|
specification_version: 4
|
|
120
120
|
summary: DSL for the restic backup tool.
|