From: Steinar H. Gunderson Date: Sun, 5 Oct 2014 09:39:35 +0000 (+0200) Subject: If .date becomes invalid, revert to full backup. X-Git-Url: https://git.sesse.net/?p=backup.sh;a=commitdiff_plain;h=966d195df94a5d99952b18e32eb4fc23f52b3a70;hp=ab7fa27b2dc27178d32fb871174af3736252e4b2 If .date becomes invalid, revert to full backup. --- 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