rustic 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +0 -1
- data/Gemfile.lock +5 -5
- 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 +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 749ff9e10d60fb610892f8c1984fcc5badf605eb5ef7dbe954d71f70aaf6e335
|
4
|
+
data.tar.gz: 0c499c7d0fd8536f464a8c9410099c9d0d9e587895f53fd50e8aff406dc20344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d806e658a7aedb406195cf6eeb87579c891a2e4c71db159685a5bcfe8ad94375e9ecdb9dcf9d56c06ed1e2164376f565793e55854b1d222fdf0fd2ada5bdcae
|
7
|
+
data.tar.gz: 1f592a8a4e737873ede871bc1877bf0da4f5959a8e384835f7412950456d6db38fb55ce691b71cd75a2f0a22144cc80730a873bbf77026db4b12bb1a990fef2a
|
data/.github/workflows/main.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rustic (0.3.
|
4
|
+
rustic (0.3.3)
|
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 (1.30.
|
13
|
+
async (1.30.3)
|
14
14
|
console (~> 1.10)
|
15
15
|
nio4r (~> 2.3)
|
16
16
|
timers (~> 4.1)
|
17
|
-
async-io (1.
|
17
|
+
async-io (1.33.0)
|
18
18
|
async
|
19
19
|
async-process (1.3.1)
|
20
20
|
async
|
@@ -25,7 +25,7 @@ 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.15.3)
|
29
29
|
fiber-local
|
30
30
|
diff-lcs (1.4.4)
|
31
31
|
docile (1.4.0)
|
@@ -110,7 +110,7 @@ GEM
|
|
110
110
|
timers (4.3.3)
|
111
111
|
unicode-display_width (2.1.0)
|
112
112
|
yard (0.9.26)
|
113
|
-
zeitwerk (2.
|
113
|
+
zeitwerk (2.6.0)
|
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", "< 3.1"]
|
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.3.
|
4
|
+
version: 0.3.3
|
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: 2022-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-process
|
@@ -108,6 +108,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 3.0.0
|
111
|
+
- - "<"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '3.1'
|
111
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
115
|
requirements:
|
113
116
|
- - ">="
|