mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
zfs should optionally send holds
Add -h switch to zfs send command to send dataset holds. If holds are present in the stream, zfs receive will create them on the target dataset, unless the zfs receive -h option is used to skip receive of holds. Reviewed-by: Alek Pinchuk <apinchuk@datto.com> Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Paul Dagnelie <pcd@delphix.com> Signed-off-by: Paul Zuchowski <pzuchowski@datto.com> Closes #7513
This commit is contained in:
committed by
Brian Behlendorf
parent
e73ab1b38c
commit
9c5e88b1de
+14
-6
@@ -195,7 +195,7 @@
|
||||
.Ar snapshot bookmark
|
||||
.Nm
|
||||
.Cm send
|
||||
.Op Fl DLPRbcenpvw
|
||||
.Op Fl DLPRbcehnpvw
|
||||
.Op Oo Fl I Ns | Ns Fl i Oc Ar snapshot
|
||||
.Ar snapshot
|
||||
.Nm
|
||||
@@ -209,14 +209,14 @@
|
||||
.Fl t Ar receive_resume_token
|
||||
.Nm
|
||||
.Cm receive
|
||||
.Op Fl Fnsuv
|
||||
.Op Fl Fhnsuv
|
||||
.Op Fl o Sy origin Ns = Ns Ar snapshot
|
||||
.Op Fl o Ar property Ns = Ns Ar value
|
||||
.Op Fl x Ar property
|
||||
.Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
|
||||
.Nm
|
||||
.Cm receive
|
||||
.Op Fl Fnsuv
|
||||
.Op Fl Fhnsuv
|
||||
.Op Fl d Ns | Ns Fl e
|
||||
.Op Fl o Sy origin Ns = Ns Ar snapshot
|
||||
.Op Fl o Ar property Ns = Ns Ar value
|
||||
@@ -3408,7 +3408,7 @@ feature.
|
||||
.It Xo
|
||||
.Nm
|
||||
.Cm send
|
||||
.Op Fl DLPRbcenpvw
|
||||
.Op Fl DLPRbcehnpvw
|
||||
.Op Oo Fl I Ns | Ns Fl i Oc Ar snapshot
|
||||
.Ar snapshot
|
||||
.Xc
|
||||
@@ -3548,6 +3548,12 @@ Note that if you do not use this flag for sending encrypted datasets, data will
|
||||
be sent unencrypted and may be re-encrypted with a different encryption key on
|
||||
the receiving system, which will disable the ability to do a raw send to that
|
||||
system for incrementals.
|
||||
.It Fl h, -holds
|
||||
Generate a stream package that includes any snapshot holds (created with the
|
||||
.Sy zfs hold
|
||||
command), and indicating to
|
||||
.Sy zfs receive
|
||||
that the holds be applied to the dataset on the receiving system.
|
||||
.It Fl i Ar snapshot
|
||||
Generate an incremental stream from the first
|
||||
.Ar snapshot
|
||||
@@ -3743,7 +3749,7 @@ for more details.
|
||||
.It Xo
|
||||
.Nm
|
||||
.Cm receive
|
||||
.Op Fl Fnsuv
|
||||
.Op Fl Fhnsuv
|
||||
.Op Fl o Sy origin Ns = Ns Ar snapshot
|
||||
.Op Fl o Ar property Ns = Ns Ar value
|
||||
.Op Fl x Ar property
|
||||
@@ -3752,7 +3758,7 @@ for more details.
|
||||
.It Xo
|
||||
.Nm
|
||||
.Cm receive
|
||||
.Op Fl Fnsuv
|
||||
.Op Fl Fhnsuv
|
||||
.Op Fl d Ns | Ns Fl e
|
||||
.Op Fl o Sy origin Ns = Ns Ar snapshot
|
||||
.Op Fl o Ar property Ns = Ns Ar value
|
||||
@@ -3878,6 +3884,8 @@ snapshot as described in the paragraph above.
|
||||
Discard all but the last element of the sent snapshot's file system name, using
|
||||
that element to determine the name of the target file system for the new
|
||||
snapshot as described in the paragraph above.
|
||||
.It Fl h
|
||||
Skip the receive of holds. There is no effect if holds are not sent.
|
||||
.It Fl n
|
||||
Do not actually receive the stream.
|
||||
This can be useful in conjunction with the
|
||||
|
||||
Reference in New Issue
Block a user