summaryrefslogtreecommitdiff
path: root/lastBackups.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-10 11:28:33 +0200
committerErich Eckner <git@eckner.net>2018-10-10 11:28:33 +0200
commit2159b5b9f8b55e49b013fc3f663cff0b0ab53bc3 (patch)
tree03119c77a70919aa678fabe476148fcab5776a8c /lastBackups.in
parent2385fb21689538a11c224d82af14775a56e9cbbb (diff)
downloadhardlinkedBackups-2159b5b9f8b55e49b013fc3f663cff0b0ab53bc3.tar.xz
option for seldom backups new
Diffstat (limited to 'lastBackups.in')
-rwxr-xr-xlastBackups.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/lastBackups.in b/lastBackups.in
index ef742cd..9f0d3e8 100755
--- a/lastBackups.in
+++ b/lastBackups.in
@@ -61,7 +61,12 @@ do
if [ ! -d "${dest}/${lbu}" ]
then
veraltet[${#veraltet[@]}]="LEER!"
- elif [ ${delta} -gt ${outdatedLimit} ]
+ elif [ ${delta} -gt ${outdatedLimit} ] && \
+ ! printf '%s\n' "${seldomBackups[@]}" | \
+ grep -qxF "${backupID}"
+ then
+ veraltet[${#veraltet[@]}]="VERALTET!"
+ elif [ ${delta} -gt ${outdatedSeldomLimit} ]
then
veraltet[${#veraltet[@]}]="VERALTET!"
else