more logic + small fixes
[outofuni/backup.git] / bin / backup
index 6b04a56..9826687 100755 (executable)
@@ -123,8 +123,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