From 966d195df94a5d99952b18e32eb4fc23f52b3a70 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 5 Oct 2014 11:39:35 +0200 Subject: [PATCH] If .date becomes invalid, revert to full backup. --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 48307bc..f054e1a 100755 --- a/backup.sh +++ b/backup.sh @@ -215,7 +215,7 @@ for filesystem in $filesystems; do # Default backuplevel backuplevel=daglig - if [ ! -f $storagedir/$computer/$sfilesystem/.date ] + if [ ! -s $storagedir/$computer/$sfilesystem/.date ] then # Take the first full backup of this filesystem on this computer backuplevel=full -- 2.39.2