adding comments for other ideas ...
[outofuni/backup.git] / bin / backup
index 6b04a56..43a1d4c 100755 (executable)
@@ -105,6 +105,11 @@ for pb in $backupdir/[0-9]*; do
                        log continuing $pb as $cbd ...
                fi
 
+               # if this is a new day backup, i.e.:
+               # - this is somewhere else!!!
+               # try to use content as basis
+               # ...
+
                rsrc=""
                for dir in $homedirs; do
                        rsrc="$rsrc :/home/$user/$dir"
@@ -123,8 +128,13 @@ for pb in $backupdir/[0-9]*; do
                        log backup terminated before completion ...
                        exit -50
                fi
-               touch $backupdir/.$pb
-               log "backup completed :)"
+               
+               touch $backupdir/.`basename $cbd`
+               log "backup `basename $cbd` completed :)"
+       else
+               if [ "$pb" = "$cbd" ]; then
+                       log backup $bdd found completed ...
+               fi
        fi
        ob="$ob $pb"
 done