more logic + small fixes
authorhackbard <hackbard@hackdaworld.org>
Sat, 3 Oct 2015 09:57:20 +0000 (09:57 +0000)
committerhackbard <hackbard@hackdaworld.org>
Sat, 3 Oct 2015 09:57:20 +0000 (09:57 +0000)
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