removed -F from incremental
This commit is contained in:
parent
3cf3666428
commit
0f93519cf0
@ -117,7 +117,8 @@ else
|
|||||||
then
|
then
|
||||||
LASTSNAP="backup_$LASTBACKUP"
|
LASTSNAP="backup_$LASTBACKUP"
|
||||||
echo "$(date +%Y-%m-%d_%H:%M:%S): Trying to send incremental snapshot from $LASTSNAP"
|
echo "$(date +%Y-%m-%d_%H:%M:%S): Trying to send 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
|
||||||
echo "$(date +%Y-%m-%d_%H:%M:%S): Sending full snapshot"
|
echo "$(date +%Y-%m-%d_%H:%M:%S): Sending full snapshot"
|
||||||
zfs send -R "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
zfs send -R "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
||||||
|
Loading…
Reference in New Issue
Block a user