removed -F from incremental

This commit is contained in:
Jochen Welzel 2021-01-11 11:36:35 +01:00
parent 0f93519cf0
commit 4b53cb7f9e

View File

@ -111,7 +111,8 @@ if [[ $SUCCESS == "true" ]]
then then
LASTSNAP="backup_$LASTBACKUP" LASTSNAP="backup_$LASTBACKUP"
echo "$(date +%Y-%m-%d_%H:%M:%S): Sending incremental snapshot from $LASTSNAP" echo "$(date +%Y-%m-%d_%H:%M:%S): Sending incremental snapshot from $LASTSNAP"
zfs send -R -i "$SRCZFS"@"$LASTSNAP" "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS ssh $DESTHOST sudo zfs rollback "$DESTZFS"@"$LASTSNAP"
zfs send -R -i "$SRCZFS"@"$LASTSNAP" "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv $DESTZFS
else else
if [[ $LASTBACKUP != "-" ]] if [[ $LASTBACKUP != "-" ]]
then then