]> hackdaworld.org Git - outofuni/backup.git/commitdiff
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 6b04a5697f93cfe229434b24c60fdbe6e743b5f7..982668745360343c55a32074484454f0c6705fb6 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