Browse Source

removed -F from incremental

master
Jochen Welzel 11 months ago
parent
commit
4b53cb7f9e
  1. 3
      libvirt-zsh-backup.sh

3
libvirt-zsh-backup.sh

@ -111,7 +111,8 @@ if [[ $SUCCESS == "true" ]]
then
LASTSNAP="backup_$LASTBACKUP"
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
if [[ $LASTBACKUP != "-" ]]
then

Loading…
Cancel
Save