summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlastBackups6
1 files changed, 5 insertions, 1 deletions
diff --git a/lastBackups b/lastBackups
index 7a03c11..83fcbed 100755
--- a/lastBackups
+++ b/lastBackups
@@ -28,7 +28,11 @@ 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\$##"))"
- [ ${delta} -gt ${outdatedLimit} ] && veraltet[${#veraltet[@]}]="VERALTET!" || veraltet[${#veraltet[@]}]=""
+ [ ! "$(ls -A ${dest}/${lbu})" ] &&
+ veraltet[${#veraltet[@]}]="LEER!" ||
+ [ ${delta} -gt ${outdatedLimit} ] && \
+ veraltet[${#veraltet[@]}]="VERALTET!" || \
+ veraltet[${#veraltet[@]}]=""
daten[${#daten[@]}]="${lbu}"
done