retention of overleaf backups

This commit is contained in:
2026-01-30 20:19:20 +01:00
parent 2deec7ea78
commit 9fd799813a

View File

@@ -0,0 +1,4 @@
#!/bin/bash
BACKUP_DIR="$HOME/docker/compose/project/service/overleaf-toolkit/backup"
ls -t "$BACKUP_DIR" | tail -n +6 | xargs -I {} rm -rf "$BACKUP_DIR/{}"