From 65fb86e7dcf10ad9c98230a0fb3292d2e4aada96 Mon Sep 17 00:00:00 2001 From: Tamas Gerczei Date: Tue, 29 Aug 2017 15:53:25 +0200 Subject: [PATCH] bugfix: incremental behaviour modifiers will no longer remain in effect unless needed --- zfs-backup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zfs-backup.sh b/zfs-backup.sh index 31de24d..7ceabce 100644 --- a/zfs-backup.sh +++ b/zfs-backup.sh @@ -108,6 +108,9 @@ function backup() { # send any previous snapshots /usr/sbin/zfs send -R${R_SNAPMODIFIER} ${LASTSNAP} | ${RMOD} /usr/sbin/zfs recv -Feuv ${SAVETO} 2>&1 >> ${LOGFILE} } + else + # ensure this does not remain in effect + unset SNAPMODIFIER R_SNAPMODIFIER fi # send backup