if syncoid is instructed to skip snapshot creation it shouldn't attempt to prune existing ones
This commit is contained in:
parent
24845bd10c
commit
63979973b2
4
syncoid
4
syncoid
|
@ -387,9 +387,11 @@ sub syncdataset {
|
|||
}
|
||||
}
|
||||
|
||||
# prune obsolete sync snaps on source and target.
|
||||
if (!defined $args{'no-sync-snap'}) {
|
||||
# prune obsolete sync snaps on source and target (only if this run created ones).
|
||||
pruneoldsyncsnaps($sourcehost,$sourcefs,$newsyncsnap,$sourceisroot,keys %{ $snaps{'source'}});
|
||||
pruneoldsyncsnaps($targethost,$targetfs,$newsyncsnap,$targetisroot,keys %{ $snaps{'target'}});
|
||||
}
|
||||
|
||||
} # end syncdataset()
|
||||
|
||||
|
|
Loading…
Reference in New Issue