From 70b331aca8f37be475b03258be60f16c0df6441f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 5 Oct 2014 11:44:07 +0200 Subject: [PATCH] Another fix for non-snapshot backups. --- backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 9f92f5c..0303824 100755 --- a/backup.sh +++ b/backup.sh @@ -123,7 +123,9 @@ backup() # Move tar file in place mv $TARFILE $DATE.tgz - mv $SNARFILE.tmp $SNARFILE + if [ "$incrementalsnar" ]; then + mv $SNARFILE.tmp $SNARFILE + fi # Update timestamp echo $DATEs > ../.date && touch -t $DATE ../.date -- 2.39.2