ephemeral: touch moved subvolume to preserve retention policy

This commit is contained in:
William 2026-04-22 15:57:02 -03:00
parent 461d3d793d
commit 1b44d1b31d

View file

@ -62,6 +62,7 @@
mkdir -p /btrfs_tmp/old_roots
timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/${cfg.rootSubvolume})" "+%Y-%m-%-d_%H:%M:%S")
mv /btrfs_tmp/${cfg.rootSubvolume} "/btrfs_tmp/old_roots/$timestamp"
touch "/btrfs_tmp/old_roots/$timestamp"
fi
delete_subvolume_recursively() {