diff --git a/libvirt-zsh-backup.sh b/libvirt-zsh-backup.sh index ef3a56a..5e92feb 100644 --- a/libvirt-zsh-backup.sh +++ b/libvirt-zsh-backup.sh @@ -87,10 +87,10 @@ then LASTBACKUP=$(zfs get backup:date -H -o value $SRCZFS) LASTSNAP="backup_$LASTBACKUP" echo "Sending incremental snapshot from $LASTSNAP" - zfs send -i "$SRCZFS"@"$LASTSNAP" "$SRCZFS"@"$SNAPNAME" | pv -L 500M | ssh $DESTHOST sudo zfs recv -F $DESTZFS + zfs send -R -i "$SRCZFS"@"$LASTSNAP" "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS else echo "Sending full snapshot" - zfs send "$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 fi if [ $? -eq 0 ] then