zfs_mgmt 0.4.9 → 0.5.5
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/.ruby-version +1 -0
- data/.solargraph.yml +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +26 -18
- data/lib/zfs_mgmt/version.rb +1 -1
- data/lib/zfs_mgmt/zfs_mgr/send.rb +3 -0
- data/lib/zfs_mgmt.rb +4 -3
- data/mise.toml +2 -0
- metadata +9 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e1fe681267d824670659f4d3536c90e2b732902c829466d777753f4cf73b4d1
|
|
4
|
+
data.tar.gz: b3cf3e528151874c1dda228778fe38bd458ccb3256a49f4f515b4a83cc6917d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e56622fdf687cfcddfddc261f102dc71089f140815aed67ace0e48dc064e796ee904d5359147cd499af09fbfdc6728e9fef67daff25a747f284a5264bc23281
|
|
7
|
+
data.tar.gz: 92bc78fd42a71c3c1dd322bd817354b9b17a75ad2a0748f54336e8173291cf8fcf5ac40437958f17f1490742a5b13824606e49ee390e71021b2b6c1653e05694
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.4.12
|
data/.solargraph.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--- {}
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
zfs_mgmt (0.
|
|
4
|
+
zfs_mgmt (0.5.5)
|
|
5
5
|
filesize (~> 0.2)
|
|
6
6
|
text-table (~> 1.2)
|
|
7
7
|
thor (~> 1.0)
|
|
@@ -9,26 +9,33 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
diff-lcs (1.
|
|
12
|
+
diff-lcs (1.6.2)
|
|
13
13
|
filesize (0.2.0)
|
|
14
|
-
json (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
rspec-
|
|
19
|
-
rspec-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
json (3.1.0)
|
|
15
|
+
language_server-protocol (3.17.0.6)
|
|
16
|
+
rake (13.4.2)
|
|
17
|
+
rspec (3.13.2)
|
|
18
|
+
rspec-core (~> 3.13.0)
|
|
19
|
+
rspec-expectations (~> 3.13.0)
|
|
20
|
+
rspec-mocks (~> 3.13.0)
|
|
21
|
+
rspec-core (3.13.7)
|
|
22
|
+
rspec-support (~> 3.13.0)
|
|
23
|
+
rspec-expectations (3.13.6)
|
|
23
24
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
24
|
-
rspec-support (~> 3.
|
|
25
|
-
rspec-mocks (3.
|
|
25
|
+
rspec-support (~> 3.13.0)
|
|
26
|
+
rspec-mocks (3.13.9)
|
|
26
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
27
|
-
rspec-support (~> 3.
|
|
28
|
-
rspec-support (3.
|
|
28
|
+
rspec-support (~> 3.13.0)
|
|
29
|
+
rspec-support (3.13.8)
|
|
30
|
+
ruby-lsp (0.11.2)
|
|
31
|
+
language_server-protocol (~> 3.17.0)
|
|
32
|
+
sorbet-runtime (>= 0.5.5685)
|
|
33
|
+
yarp (>= 0.12, < 0.13)
|
|
34
|
+
sorbet-runtime (0.6.13690)
|
|
29
35
|
text-table (1.2.4)
|
|
30
|
-
thor (1.
|
|
31
|
-
timeout (0.
|
|
36
|
+
thor (1.5.0)
|
|
37
|
+
timeout (0.6.1)
|
|
38
|
+
yarp (0.12.0)
|
|
32
39
|
|
|
33
40
|
PLATFORMS
|
|
34
41
|
x86_64-linux
|
|
@@ -39,10 +46,11 @@ DEPENDENCIES
|
|
|
39
46
|
json
|
|
40
47
|
rake (>= 12.3.3)
|
|
41
48
|
rspec (~> 3.0)
|
|
49
|
+
ruby-lsp
|
|
42
50
|
text-table
|
|
43
51
|
thor
|
|
44
52
|
timeout
|
|
45
53
|
zfs_mgmt!
|
|
46
54
|
|
|
47
55
|
BUNDLED WITH
|
|
48
|
-
2.
|
|
56
|
+
2.6.9
|
data/lib/zfs_mgmt/version.rb
CHANGED
|
@@ -25,9 +25,12 @@ class ZfsMgmt::ZfsMgr::Send < Thor
|
|
|
25
25
|
|
|
26
26
|
method_option :noop, :aliases => :'-n', :desc => "pass -n (noop) option to zfs send", :type => :boolean
|
|
27
27
|
method_option :unmount, :aliases => :'-u', :desc => "pass -u (unmount) option to zfs receive", :type => :boolean
|
|
28
|
+
method_option :force, :aliases => :'-F', :desc => "pass -F (force) option to zfs receive", :type => :boolean
|
|
28
29
|
method_option :exclude, :aliases => :'-x', :desc => "passed to -x option of receive side", :type => :string, repeatable: true
|
|
29
30
|
method_option :option, :aliases => :'-o', :desc => "passed to -o option of receive side", :type => :string, repeatable: true
|
|
30
31
|
method_option :drop_holds, :desc => "pass the -h option to zfs recv, indicating holds should be ignored", :type => :boolean
|
|
32
|
+
method_option :discard_last, :desc => "pass the -e option to zfs recv, discarding all but the last element of the send snapshot's file system name", :type => :boolean
|
|
33
|
+
method_option :discard_first, :desc => "pass the -d option to zfs recv, discarding the first element of the send snapshot's file system name", :type => :boolean
|
|
31
34
|
|
|
32
35
|
method_option :mbuffer, :desc => "insert mbuffer between send and recv", :default => true, :type => :boolean
|
|
33
36
|
method_option :mbuffer_size, :desc => "passed to mbuffer -s option", :type => :string
|
data/lib/zfs_mgmt.rb
CHANGED
|
@@ -554,13 +554,14 @@ module ZfsMgmt
|
|
|
554
554
|
zfs_send_com + extra_opts + [dq(target),'|']
|
|
555
555
|
end
|
|
556
556
|
def self.zfs_recv_com(options,extra_opts,props,target)
|
|
557
|
-
zfs_recv_com = [ ZfsMgmt.global_options[:zfs_binary], 'recv', '-
|
|
557
|
+
zfs_recv_com = [ ZfsMgmt.global_options[:zfs_binary], 'recv', '-s' ]
|
|
558
558
|
recv_opts = {
|
|
559
559
|
'noop' => '-n',
|
|
560
560
|
'drop_holds' => '-h',
|
|
561
561
|
'unmount' => '-u',
|
|
562
|
-
|
|
563
|
-
|
|
562
|
+
'discard_last' => '-e',
|
|
563
|
+
'discard_first' => '-d',
|
|
564
|
+
'force' => '-F'
|
|
564
565
|
}
|
|
565
566
|
recv_opts.each do |p,o|
|
|
566
567
|
# allow the command line options to override the properties value
|
data/mise.toml
ADDED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zfs_mgmt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aran Cox
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -94,21 +93,22 @@ dependencies:
|
|
|
94
93
|
- - "~>"
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
95
|
version: '0.2'
|
|
97
|
-
description:
|
|
98
96
|
email:
|
|
99
97
|
- arancox@gmail.com
|
|
100
98
|
executables:
|
|
101
99
|
- readsnaps
|
|
102
|
-
- zfssendman
|
|
103
|
-
- zfssnapman
|
|
104
|
-
- zfsrecvman
|
|
105
100
|
- zfs-list-snapshots
|
|
106
101
|
- zfsmgr
|
|
102
|
+
- zfsrecvman
|
|
103
|
+
- zfssendman
|
|
104
|
+
- zfssnapman
|
|
107
105
|
extensions: []
|
|
108
106
|
extra_rdoc_files: []
|
|
109
107
|
files:
|
|
110
108
|
- ".gitignore"
|
|
111
109
|
- ".rspec"
|
|
110
|
+
- ".ruby-version"
|
|
111
|
+
- ".solargraph.yml"
|
|
112
112
|
- ".travis.yml"
|
|
113
113
|
- COPYING
|
|
114
114
|
- Gemfile
|
|
@@ -132,6 +132,7 @@ files:
|
|
|
132
132
|
- lib/zfs_mgmt/zfs_mgr/restic.rb
|
|
133
133
|
- lib/zfs_mgmt/zfs_mgr/send.rb
|
|
134
134
|
- lib/zfs_mgmt/zfs_mgr/snapshot.rb
|
|
135
|
+
- mise.toml
|
|
135
136
|
- zfs_mgmt.gemspec
|
|
136
137
|
homepage: https://github.com/aranc23/zfs_mgmt
|
|
137
138
|
licenses:
|
|
@@ -140,7 +141,6 @@ metadata:
|
|
|
140
141
|
homepage_uri: https://github.com/aranc23/zfs_mgmt
|
|
141
142
|
source_code_uri: https://github.com/aranc23/zfs_mgmt
|
|
142
143
|
changelog_uri: https://github.com/aranc23/zfs_mgmt/commits/
|
|
143
|
-
post_install_message:
|
|
144
144
|
rdoc_options: []
|
|
145
145
|
require_paths:
|
|
146
146
|
- lib
|
|
@@ -155,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
155
|
- !ruby/object:Gem::Version
|
|
156
156
|
version: '0'
|
|
157
157
|
requirements: []
|
|
158
|
-
rubygems_version: 3.
|
|
159
|
-
signing_key:
|
|
158
|
+
rubygems_version: 3.6.9
|
|
160
159
|
specification_version: 4
|
|
161
160
|
summary: Misc. helpers regarding snapshots and send/recv.
|
|
162
161
|
test_files: []
|