From 85c08e815f1e5c36bbb92e0918c1f5ff05524999 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sun, 27 Oct 2024 11:35:24 +0100 Subject: [PATCH] Change snapshots retention time from 15 to 8 days --- conts-snap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conts-snap.sh b/conts-snap.sh index 55825c8..0dff06f 100755 --- a/conts-snap.sh +++ b/conts-snap.sh @@ -8,7 +8,7 @@ mount $containers_dir cd /var/lib/machines for filename in *; do systemctl start cont-snap@$filename.service - btrfs subvolume delete $containers_dir/$filename/$(date -d "-15 days" +"%Y%m%d")* + btrfs subvolume delete $containers_dir/$filename/$(date -d "-8 days" +"%Y%m%d")* done umount $containers_dir