]> git.sesse.net Git - backup.sh/blobdiff - backup.sh
If .date becomes invalid, revert to full backup.
[backup.sh] / 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