Closed OliveiraNt closed 5 months ago
Hey @OliveiraNt Im working on this right now but dont want to use date for this. More like combination of sorts.
The solution will be like "keep the last X backups" sort of way.
This was just fixed - See https://github.com/jammsen/docker-palworld-dedicated-server/issues/27#issuecomment-1916979966
Im closing this issue as resolved, feel free to try it out and reopen again if needed.
If you like this project, please consider giving this repo and the docker-hub-repo a Star.
Have you read the Important information text above
Describe the feature
I think it would be a useful to put an option to remove old backups to avoid disk space waste.
I currently use something like this on my server:
0 0 * * * find ${BACKUP_DIR} -type f -mtime +${DAYS_TO_RETAIN} -exec rm {} \;
It could other cron or be added to
backupmanager.sh
to run after.Something like:
Additional information
Final checks