Rename option.

This commit is contained in:
Mathieu Arnold 2020-05-11 16:37:40 +02:00
parent 2d89434ac3
commit 63dd819ec5
No known key found for this signature in database
GPG Key ID: 7F620E0A9E9D41BE
2 changed files with 6 additions and 5 deletions

View File

@ -319,9 +319,10 @@ As of 1.4.18, syncoid also automatically supports and enables resume of interrup
+ --preserve-recordsize
This argument tells syncoid to set the recordsize on the target before writing any data to it matching the one set on the replication src. This only applies to initial sends.
+ --push-snap-removal
With this argument snapshots that are removed in the source will also be removed. Use this if you only want to handle snapshots on the source.
+ --delete-target-snapshots
With this argument snapshots which are missing on the source will be destroyed on the target. Use this if you only want to handle snapshots on the source.
+ --no-clone-rollback

View File

@ -26,7 +26,7 @@ GetOptions(\%args, "no-command-checks", "monitor-version", "compress=s", "dumpsn
"debug", "quiet", "no-stream", "no-sync-snap", "no-resume", "exclude=s@", "skip-parent", "identifier=s",
"no-clone-handling", "no-privilege-elevation", "force-delete", "no-rollback", "create-bookmark",
"pv-options=s" => \$pvoptions, "keep-sync-snap", "preserve-recordsize", "mbuffer-size=s" => \$mbuffer_size,
"push-snap-removal",)
"delete-target-snapshots")
or pod2usage(2);
my %compressargs = %{compressargset($args{'compress'} || 'default')}; # Can't be done with GetOptions arg, as default still needs to be set
@ -889,7 +889,7 @@ sub syncdataset {
}
}
if (defined $args{'push-snap-removal'}) {
if (defined $args{'delete-target-snapshots'}) {
foreach my $snap ( sort { $snaps{'target'}{$a}{'creation'}<=>$snaps{'target'}{$b}{'creation'} } keys %{ $snaps{'target'} }) {
if (!exists $snaps{'source'}{$snap}) {
if ($targethost ne '') {
@ -2014,7 +2014,7 @@ Options:
--create-bookmark Creates a zfs bookmark for the newest snapshot on the source after replication succeeds (only works with --no-sync-snap)
--preserve-recordsize Preserves the recordsize on initial sends to the target
--no-rollback Does not rollback snapshots on target (it probably requires a readonly target)
--push-snap-removal Remove snapshots on the target that do not exist on the source any more
--delete-target-snapshots With this argument snapshots which are missing on the source will be destroyed on the target. Use this if you only want to handle snapshots on the source.
--exclude=REGEX Exclude specific datasets which match the given regular expression. Can be specified multiple times
--sendoptions=OPTIONS Use advanced options for zfs send (the arguments are filtered as needed), e.g. syncoid --sendoptions="Lc e" sets zfs send -L -c -e ...
--recvoptions=OPTIONS Use advanced options for zfs receive (the arguments are filtered as needed), e.g. syncoid --recvoptions="ux recordsize o compression=lz4" sets zfs receive -u -x recordsize -o compression=lz4 ...