summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-30 11:33:58 +0200
committerErich Eckner <git@eckner.net>2021-03-30 11:34:05 +0200
commit2f0a73433566be6de4d24483fa57a97e25a39204 (patch)
tree0653cd91383aa1a03954905871d5d01d4d755430
parent9625589f253cf46cf65b53a56a6f6316a2901489 (diff)
downloadhardlinkedBackups-2f0a73433566be6de4d24483fa57a97e25a39204.tar.xz
last-backups.in: default to 1970-01-01
-rwxr-xr-xlast-backups.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/last-backups.in b/last-backups.in
index 9777392..d7b9ec8 100755
--- a/last-backups.in
+++ b/last-backups.in
@@ -55,7 +55,7 @@ do
grep "^[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}$" | \
tail -n1
)
- [ "${lbu}" == "" ] && lbu="2000_01_01"
+ [ "${lbu}" == "" ] && lbu="1970_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 [ -f "/tmp/${backupID}.pid" ] && pgrep -x backup | grep -qxF "$(cat "/tmp/${backupID}.pid")"; then