minecraft-backup
minecraft-backup copied to clipboard
[Feature Request] Variable Retention Policy
Hi @nicolaschan ,
great script! Currently integrating this into my environment and building a docker container out of this (if you'd be interested in integrating this into the repository, let me know!)
Since my server is not highly frequented, I am imagining only daily not hourly backups. My question/feature request would be a more flexible retention policy, in order to keep the last x hourly/daily/weekly/monthly backups, configurable by CLI arg or ENV variable.
Thanks!
There is already a Docker image built by the build pipeline: https://github.com/users/nicolaschan/packages/container/package/minecraft-backup
The Docker image isn't mentioned in the README, but it probably should be. I've been testing it out in Kubernetes and it seems to work so far. If there are any changes you make, I'd be happy to review and integrate them here with a pull request.
The configurable number of backups is a good idea. I'm not sure about when I'll have time to add it, but I'd also be happy to accept a pull request. Right now if you run the script hourly it will keep 16+24=40 of the hourly and then 30 daily.