prune-old-backups rewritten to work with optional command line args, and to work with files or folders.

This commit is contained in:
2023-09-07 09:20:42 +00:00
parent b528568876
commit e677c4115b
2 changed files with 56 additions and 21 deletions
+6 -3
View File
@@ -15,12 +15,15 @@ STORAGE_ALERT=(["/"]=5)
BACKUP_DIRECTORY="/home/ubuntu/data"
# when set to 0, all backups are kept
PRUNE_DOWN_TO=0
# the directory with backups to cleanup
PRUNE_DIRECTORY="/home/ubuntu/data"
# what type of backups to cleanup (what to find) "*.zip" etc, or "<DIR>"
PRUNE_TYPE="<DIR>"
# when set to 0, all backups are kept
PRUNE_DOWN_TO=0
SERVER_DOMAIN="localhost"
DISCORD_SERVER_NAME="<YOUR SERVER>"