]> git.sesse.net Git - backup.sh/commitdiff
If .date becomes invalid, revert to full backup.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 5 Oct 2014 09:39:35 +0000 (11:39 +0200)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 5 Oct 2014 09:39:35 +0000 (11:39 +0200)
backup.sh

index 48307bc92ad3b81c994b3aa3b6d3920019b216be..f054e1aae68fa9d93e875e3db4cb04a9077a9914 100755 (executable)
--- 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