zfs_mgmt 0.3.8 → 0.3.9
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/Gemfile.lock +1 -1
- data/lib/zfs_mgmt/restic.rb +12 -5
- data/lib/zfs_mgmt/version.rb +1 -1
- data/lib/zfs_mgmt/zfs_mgr/restic.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01dce6574812e84d56d1a59b01e100eab3f8d20cbf424e2536e057ec67a54012
|
|
4
|
+
data.tar.gz: 142d2188e242cd55b94c3f5c9375dfa1900ddff8ee608a41d8698d7bcc9bf948
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3297d3fb276a460c9b3478316615c34b93ce6a9116d56657e53855327cc0764ddf57cb2c53273bbe72c14624edf1631836378b50ad4b3f62b2fb2a6a21d49970
|
|
7
|
+
data.tar.gz: a50bb0e812584aa1b1af794cb729182a5d9d6805e1318c4115462d6718dd2b517c5bd40267c9586cbb5f5ac966bfb742c084576cc3bf6cf9bc4443dd29f3c910
|
data/Gemfile.lock
CHANGED
data/lib/zfs_mgmt/restic.rb
CHANGED
|
@@ -12,10 +12,12 @@ module ZfsMgmt::Restic
|
|
|
12
12
|
if options.has_key?('password_file')
|
|
13
13
|
com.push('-p',options['password_file'])
|
|
14
14
|
end
|
|
15
|
-
if
|
|
16
|
-
com.push(
|
|
15
|
+
if options.has_key?('repo')
|
|
16
|
+
com.push('--repo', options['repo'])
|
|
17
|
+
elsif props.has_key?('zfsmgmt:restic_repository')
|
|
18
|
+
com.push( '--repo', props['zfsmgmt:restic_repository'] )
|
|
17
19
|
end
|
|
18
|
-
|
|
20
|
+
|
|
19
21
|
$logger.debug("#{com.join(' ')}")
|
|
20
22
|
restic_output = %x(#{com.join(' ')})
|
|
21
23
|
unless $?.success?
|
|
@@ -122,11 +124,16 @@ module ZfsMgmt::Restic
|
|
|
122
124
|
tags.each do |tag|
|
|
123
125
|
com.push( '--tag', "\"#{tag}\"" )
|
|
124
126
|
end
|
|
127
|
+
if options.has_key?('limit_upload')
|
|
128
|
+
com.push('--limit-upload', options['limit_upload'])
|
|
129
|
+
end
|
|
125
130
|
if options.has_key?('password_file')
|
|
126
131
|
com.push('-p',options['password_file'])
|
|
127
132
|
end
|
|
128
|
-
if
|
|
129
|
-
com.push(
|
|
133
|
+
if options.has_key?('repo')
|
|
134
|
+
com.push('--repo', options['repo'])
|
|
135
|
+
elsif props.has_key?('zfsmgmt:restic_repository')
|
|
136
|
+
com.push( '--repo', props['zfsmgmt:restic_repository'] )
|
|
130
137
|
end
|
|
131
138
|
if options[:verbose]
|
|
132
139
|
com.push('--verbose',options[:verbose])
|
data/lib/zfs_mgmt/version.rb
CHANGED
|
@@ -13,6 +13,10 @@ class ZfsMgmt::ZfsMgr::Backup < Thor
|
|
|
13
13
|
:desc => 'buffer size for mbuffer'
|
|
14
14
|
class_option :password_file, :alias => '-p', :type => :string,
|
|
15
15
|
:desc => 'passed to restic'
|
|
16
|
+
class_option :limit_upload, :type => :numeric,
|
|
17
|
+
:desc => 'passed to restic'
|
|
18
|
+
class_option :repo, :type => :string,
|
|
19
|
+
:desc => 'passed to restic'
|
|
16
20
|
desc "incremental", "perform incremental backup"
|
|
17
21
|
method_option :level, :desc => "backup level in integer form", :default => 2, :type => :numeric
|
|
18
22
|
method_option :intermediary, :alias => '-I', :desc => "pass -I (intermediary) option to zfs send", :default => false, :type => :boolean
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zfs_mgmt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aran Cox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-02-
|
|
11
|
+
date: 2021-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|