removed -F from incremental
This commit is contained in:
parent
0f93519cf0
commit
4b53cb7f9e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user