From 2f0a73433566be6de4d24483fa57a97e25a39204 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 30 Mar 2021 11:33:58 +0200 Subject: last-backups.in: default to 1970-01-01 --- last-backups.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2