commit 3ba7263fc78c4926e2720c82d4fb30ec4d445e33 parent c80e2fe7cb7240fe31468d00b2920b644f1264b4 Author: Andreas Gruhler <agruhl@gmx.ch> Date: Sun, 30 Nov 2025 23:32:13 +0100 feat(lxc-snapshot): prune older thant 2d Diffstat:
| M | debian_postinstall.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian_postinstall.sh b/debian_postinstall.sh @@ -192,8 +192,8 @@ for c in "${ctx[@]}"; do lxc-destroy $snap_name done; -# Prune snapshots older than 5 days -find "$BACKUP_PATH/" -type f -mtime +5 -exec rm -f {} \; +# Prune snapshots older than 2 days +find "$BACKUP_PATH/" -type f -mtime +2 -exec rm -f {} \; EOF chmod +x /usr/local/bin/lxc-snapshot.sh