Change snapshots retention time from 15 to 8 days

This commit is contained in:
Alexandre CATTEAU 2024-10-27 11:35:24 +01:00
parent 5e2e981cba
commit 85c08e815f

View File

@ -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