@@ -30,6 +30,11 @@ where 'command' is one of the following:
30
30
31
31
list [src_dataset]
32
32
33
+ export <src_dataset>
34
+
35
+ import [--write] [--prop <property>=<value>, [--prop ...] ...]
36
+ <src_dataset> [<prop_dump_file>]
37
+
33
38
help
34
39
35
40
man
@@ -55,7 +60,7 @@ or multiples of them. You can use both the full name or a shortcut according
55
60
to the following table:
56
61
57
62
second|sec|s
58
- minute|min|M
63
+ minute|min
59
64
hour|h
60
65
day|d
61
66
week|w
@@ -130,7 +135,7 @@ e.g. for database locking/flushing (pre) and unlocking (post).
130
135
131
136
to remove configuration from a dataset just give its name
132
137
133
- znapzendzetup I<dataset>
138
+ znapzendzetup delete I<dataset>
134
139
135
140
the B<delete> function understands the following options
136
141
@@ -148,16 +153,44 @@ B<list> function to see the keys.
148
153
modify the configuration of a dataset. see the descriptions in the B<create>
149
154
function for details.
150
155
151
- =head1 EXAMPLE
156
+ =head2 B<export>
157
+
158
+ dumps the backup configuration of a dataset
159
+
160
+ znapzendzetup export I<dataset>
161
+
162
+ =head2 B<import>
163
+
164
+ reads configuration data from a file or STDIN and prints it content
165
+
166
+ =over
167
+
168
+ =item B<--write>
169
+
170
+ actually store the new configuration into the dataset given on the
171
+ commandline.
172
+
173
+ =item B<--prop> I<key>="I<value>" [ B<--prop> ... ]
174
+
175
+ may be called multiple times to override properties in the imported config.
176
+
177
+
178
+ =head1 EXAMPLES
179
+
180
+ create a complex backup task
152
181
153
182
znapzendzetup create --recursive --mbuffer=/opt/omni/bin/mbuffer \
154
- --mbuffersize=1337M --tsformat='%Y-%m-%d-%H%M%S' \
183
+ --mbuffersize=1G --tsformat='%Y-%m-%d-%H%M%S' \
155
184
--pre-snap-command="/bin/sh /usr/local/bin/lock_flush_db.sh" \
156
185
--post-snap-command="/bin/sh /usr/local/bin/unlock_db.sh" \
157
186
SRC '7d=>1h,30d=>4h,90d=>1d' tank/home \
158
187
DST:a '7d=>1h,30d=>4h,90d=>1d,1y=>1w,10y=>1month' backup/home \
159
188
DST:b '7d=>1h,30d=>4h,90d=>1d,1y=>1w,10y=>1month' root@bserv:backup/home
160
189
190
+ copy the setup from one fileset to another
191
+
192
+ znapzendzetup export tank/home | znapzendzetup import --write tank/new_home
193
+
161
194
=head1 COPYRIGHT
162
195
163
196
Copyright (c) 2014 by OETIKER+PARTNER AG. All rights reserved.
0 commit comments