zfs_mgmt 0.3.6 → 0.3.7
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 +7 -0
- data/lib/zfs_mgmt/version.rb +1 -1
- data/lib/zfs_mgmt/zfs_mgr/restic.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41d11db7f3f04f019d340a6ed656649133eb9c198ddf99e5d307fab94230bd3a
|
|
4
|
+
data.tar.gz: ce2bdcf6cf70572eb2e40835227b4b4c2f64cc7953530d47b8bf8aed12210390
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4cb9a4af8ef4a57f07977032d2f9719f5c7b01038c067922ed1816e51865f3d3cbae569820acd2aa6cc2df9967477f834557143491b5c164dd22e49f64a804b3
|
|
7
|
+
data.tar.gz: 126774efeb92f13d5449ed056991741429f0b4fd7d24594abd88b44b562f9db0fbc9d7518a6ab48a6e5bb455531df988733261d56182cc150287543bb4a8848e
|
data/Gemfile.lock
CHANGED
data/lib/zfs_mgmt/restic.rb
CHANGED
|
@@ -9,6 +9,10 @@ module ZfsMgmt::Restic
|
|
|
9
9
|
'--tag', 'zfsmgmt',
|
|
10
10
|
'--path', "/#{zfs}",
|
|
11
11
|
]
|
|
12
|
+
pp options
|
|
13
|
+
if options.has_key?('password_file')
|
|
14
|
+
com.push('-p',options['password_file'])
|
|
15
|
+
end
|
|
12
16
|
if props.has_key?('zfsmgmt:restic_repository')
|
|
13
17
|
com.push( '-r', props['zfsmgmt:restic_repository'] )
|
|
14
18
|
end
|
|
@@ -119,6 +123,9 @@ module ZfsMgmt::Restic
|
|
|
119
123
|
tags.each do |tag|
|
|
120
124
|
com.push( '--tag', "\"#{tag}\"" )
|
|
121
125
|
end
|
|
126
|
+
if options.has_key?('password_file')
|
|
127
|
+
com.push('-p',options['password_file'])
|
|
128
|
+
end
|
|
122
129
|
if props.has_key?('zfsmgmt:restic_repository')
|
|
123
130
|
com.push( '-r', props['zfsmgmt:restic_repository'] )
|
|
124
131
|
end
|
data/lib/zfs_mgmt/version.rb
CHANGED
|
@@ -11,6 +11,8 @@ class ZfsMgmt::ZfsMgr::Backup < Thor
|
|
|
11
11
|
:desc => 'verbosity level for restic'
|
|
12
12
|
class_option :buffer, :type => :string, :default => '256m',
|
|
13
13
|
:desc => 'buffer size for mbuffer'
|
|
14
|
+
class_option :password_file, :alias => '-p', :type => :string,
|
|
15
|
+
:desc => 'passed to restic'
|
|
14
16
|
desc "incremental", "perform incremental backup"
|
|
15
17
|
method_option :level, :desc => "backup level in integer form", :default => 2, :type => :numeric
|
|
16
18
|
method_option :intermediary, :alias => '-I', :desc => "pass -I (intermediary) option to zfs send", :default => false, :type => :boolean
|