From 6274fc763a47ad0517ee19dfc728ef65114eef94 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 29 Apr 2024 18:24:45 +0200 Subject: remove-old-backups: only keep backups of the last 180 days --- remove-old-backups.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remove-old-backups.in b/remove-old-backups.in index c931409..e1a795d 100755 --- a/remove-old-backups.in +++ b/remove-old-backups.in @@ -61,7 +61,7 @@ backups=$( uniq -f2 printf '%s\n' "${backups}" | \ sed "$( - for dist in $(seq 0 20 365); do + for dist in $(seq 0 20 180); do printf '/ %s \S\+$/p\n' \ "$(date '+%m %Y' -d@$(($(date +%s)-24*60*60*${dist})))" done | \ -- cgit v1.2.3-70-g09d2