Change snapshots retention time from 15 to 8 days
This commit is contained in:
parent
5e2e981cba
commit
85c08e815f
@ -8,7 +8,7 @@ mount $containers_dir
|
|||||||
cd /var/lib/machines
|
cd /var/lib/machines
|
||||||
for filename in *; do
|
for filename in *; do
|
||||||
systemctl start cont-snap@$filename.service
|
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
|
done
|
||||||
|
|
||||||
umount $containers_dir
|
umount $containers_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user