diff options
author | pablofsf <[email protected]> | 2021-04-11 21:05:35 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-04-14 13:19:50 -0700 |
commit | 07d64c07e06e558219f645b304d891bed9ff652f (patch) | |
tree | 462e399ee5c23da0273ed546e3c3912d02df16d7 /man/man8 | |
parent | f8631d0fe065c2211fa3527d4b9f5e04725382fb (diff) |
Allow zfs to send replication streams with missing snapshots
A tentative implementation and discussion was done in #5285.
According to it a send --skip-missing|-s flag has been added.
In a replication stream, when there are snapshots missing in
the hierarchy, if -s is provided print a warning and ignore
dataset (and its children) instead of throwing an error
Reviewed-by: Paul Dagnelie <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Pablo Correa Gómez <[email protected]>
Closes #11710
Diffstat (limited to 'man/man8')
-rw-r--r-- | man/man8/zfs-send.8 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/man/man8/zfs-send.8 b/man/man8/zfs-send.8 index 4156db4f6..2d64a5a1f 100644 --- a/man/man8/zfs-send.8 +++ b/man/man8/zfs-send.8 @@ -39,12 +39,12 @@ .Sh SYNOPSIS .Nm zfs .Cm send -.Op Fl DLPRbcehnpvw +.Op Fl DLPRsbcehnpvw .Op Oo Fl I Ns | Ns Fl i Oc Ar snapshot .Ar snapshot .Nm zfs .Cm send -.Op Fl DLPRcenpvw +.Op Fl DLPRscenpvw .Op Fl i Ar snapshot Ns | Ns Ar bookmark .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot .Nm zfs @@ -139,6 +139,12 @@ do not exist on the sending side are destroyed. If the flag is used to send encrypted datasets, then .Fl w must also be specified. +.It Fl s, -skip-missing +Allows sending a replication stream even when there are snapshots missing in the +hierarchy. When a snapshot is missing, instead of throwing an error and aborting +the send, a warning is printed to STDERR and the dataset to which it belongs +and its descendents are skipped. This flag can only be used in conjunction with +.Fl R . .It Fl e, -embed Generate a more compact stream by using .Sy WRITE_EMBEDDED |