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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2034670d58c6f8eba6eb092109d3f4f5617b70096c2a69430b38bc99f28d2f85
4
- data.tar.gz: 2f5e606372b1a915b7294a238bbb8cd230189b5a6e8259e77adcec8d11010112
3
+ metadata.gz: 01dce6574812e84d56d1a59b01e100eab3f8d20cbf424e2536e057ec67a54012
4
+ data.tar.gz: 142d2188e242cd55b94c3f5c9375dfa1900ddff8ee608a41d8698d7bcc9bf948
5
5
  SHA512:
6
- metadata.gz: f01390846210b1e9b1bb7e3f800dd970170612641453189adc81edb4f85827ec1abbc22249243661c534bda81197081e57852ac5b812f377f167065095ed3e46
7
- data.tar.gz: 17bca1cf6f88bfa37945ee60c9780694ea8f4f2f12bb2a3a4ea6e4a267d3e0abd5ec5d45b5fd777a2dafebf1e73d416578bac6e3fb146431ce045205b12835b7
6
+ metadata.gz: 3297d3fb276a460c9b3478316615c34b93ce6a9116d56657e53855327cc0764ddf57cb2c53273bbe72c14624edf1631836378b50ad4b3f62b2fb2a6a21d49970
7
+ data.tar.gz: a50bb0e812584aa1b1af794cb729182a5d9d6805e1318c4115462d6718dd2b517c5bd40267c9586cbb5f5ac966bfb742c084576cc3bf6cf9bc4443dd29f3c910
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zfs_mgmt (0.3.8)
4
+ zfs_mgmt (0.3.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 props.has_key?('zfsmgmt:restic_repository')
16
- com.push( '-r', props['zfsmgmt:restic_repository'] )
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 props.has_key?('zfsmgmt:restic_repository')
129
- com.push( '-r', props['zfsmgmt:restic_repository'] )
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])
@@ -1,3 +1,3 @@
1
1
  module ZfsMgmt
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
@@ -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.8
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-18 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler