include default backup retention time

This commit is contained in:
SugoiDogo
2024-01-29 06:50:25 -08:00
committed by GitHub
parent 0ada91e61e
commit 612f679109

View File

@@ -17,6 +17,6 @@ fi
echo "backup created at $FILE_PATH"
if [ "${DELETE_OLD_BACKUPS}" = true ]; then
echo "removing backups older than $OLD_BACKUP_DAYS days"
echo "removing backups older than ${OLD_BACKUP_DAYS:=30} days"
find /palworld/backups/ -mindepth 1 -maxdepth 1 -mtime +$OLD_BACKUP_DAYS -print -delete
fi