From: hackbard Date: Sat, 3 Oct 2015 09:57:20 +0000 (+0000) Subject: more logic + small fixes X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=dded1d875778985fd06ed58b5537e3604979835b;p=outofuni%2Fbackup.git more logic + small fixes --- diff --git a/bin/backup b/bin/backup index 6b04a56..9826687 100755 --- a/bin/backup +++ b/bin/backup @@ -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