diff options
author | Erich Eckner <git@eckner.net> | 2016-12-13 13:38:12 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-12-13 13:38:12 +0100 |
commit | f03618e74e05e5cb7a2b355a40b4175ba85d3ed1 (patch) | |
tree | a03bb01fdc9b76c18bb71b4ec7d7904c71d52912 | |
parent | 51bd7e7f6a628ebaeca1e386cc81106b2c3f9c2a (diff) | |
download | hardlinkedBackups-f03618e74e05e5cb7a2b355a40b4175ba85d3ed1.tar.xz |
Erfolgswahrscheinlichkeit von lastBackups fuer non-root erhoehen
-rwxr-xr-x | lastBackups.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lastBackups.in b/lastBackups.in index ce27350..ef742cd 100755 --- a/lastBackups.in +++ b/lastBackups.in @@ -58,7 +58,7 @@ do [ "${lbu}" == "" ] && lbu="2000_01_01" delta=$[$(date +%s) - $(date -d $(echo ${lbu} | sed "s/_//g") +%s)] namen[${#namen[@]}]="$(basename $(echo ${dest} | sed "s#/\(${recognSubdirRegex}\)\$#_\1#" | sed "s#/rsync\$##; s#/duplicity\$##"))" - if [ ! "$(ls -A ${dest}/${lbu})" ] + if [ ! -d "${dest}/${lbu}" ] then veraltet[${#veraltet[@]}]="LEER!" elif [ ${delta} -gt ${outdatedLimit} ] |