From 0e285fe2222d98e305fea604b79c76ea6151cc17 Mon Sep 17 00:00:00 2001 From: Jochen Welzel Date: Wed, 6 Jan 2021 11:12:19 +0100 Subject: [PATCH] add --- libvirt-zsh-backup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvirt-zsh-backup.sh b/libvirt-zsh-backup.sh index a1964b4..ef3a56a 100644 --- a/libvirt-zsh-backup.sh +++ b/libvirt-zsh-backup.sh @@ -86,8 +86,10 @@ if [[ $SUCCESS == "true" ]] 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 else + echo "Sending full snapshot" zfs send "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS fi if [ $? -eq 0 ]