diff options
author | Erich Eckner <git@eckner.net> | 2018-10-10 11:28:33 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-10 11:28:33 +0200 |
commit | 2159b5b9f8b55e49b013fc3f663cff0b0ab53bc3 (patch) | |
tree | 03119c77a70919aa678fabe476148fcab5776a8c /lastBackups.in | |
parent | 2385fb21689538a11c224d82af14775a56e9cbbb (diff) | |
download | hardlinkedBackups-2159b5b9f8b55e49b013fc3f663cff0b0ab53bc3.tar.xz |
option for seldom backups new
Diffstat (limited to 'lastBackups.in')
-rwxr-xr-x | lastBackups.in | 7 |
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 |