Closed jack-mil closed 1 month ago
The "backup now" mode does include file pruning. The latest image now logs the info message about pruning every time since it was also confusing to me when I was testing. You can set the DEBUG
env var to "true" to see exactly what it is doing during the prune step.
Ok , thank you so much! That helped me identify that I was using the wrong environment variable PRUNE_BACKUP_DAYS
instead of PRUNE_BACKUPS_DAYS
. I also was able to trim my world quite a bit today, so the file size is much more managable, and backups take much less time. I think I never saw the script deleting old backps (I had it set to 4 days) because I would run out of disk space due to my large world size before it got to the default of 7 days.
I am running with the
backup now
oneshot method, triggered by a cron job starting the docker container at specific times, as described in #156. However, pruning old files does not occur. I have to manually go in and remove old files every few days so I don't run out of space. My world file is very large (18 GB uncompressed), so I am getting the "file changed as we read it" as decscribed in #56. Unsure if that is related or not. Backing up takes ~6 minutes.Can anyone confirm if this is only any issue with one-shot backups? Does the container need to be long-running to delete old files correctly?
recent log:
dockercompose: