-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rclone only prune local #163
Comments
The local tar file is only supposed to be retained long enough for the docker-mc-backup/scripts/opt/backup-loop.sh Lines 407 to 408 in 3c9c6f9
It sounds like the entire backup lookup bailed out due to the auth issues and left behind the temp tar files. Can you provide any recent logs from one of those failures? As for the pausing behavior, make sure you have pulled the latest versions of both the backup and minecraft server images. The backups should be skipping when the server is paused. |
Yeah, the rclone failed because the token expired. A small issue with my setup. But either way it could make sense to decouple the delete/cleanup from the upload success. It could make sense to keep the file so backups don't get lost, but only if they get uploaded and deleted eventually. |
That's what I will want the code to be doing since it is apparently not at this time. That's why I was asking for logs to confirm the incorrect error handling. I'll blindly make the change and hope that it resolves future occurrences. |
Sorry don't have the logs anymore since the container restarted. But they were rclone errors about the token being expired. |
That's ok. I'm actually more interested in the logs surrounding the failed call and more specifically if the container restarted when the rclone operation failed. |
As for the original concern about the pruning of remote files, I suggest setting |
The latest image should now gracefully continue from a failed |
Will try asap |
I wanted to check if there is a way to only prune local files?
I want to make sure only the last X backups are kept locally (to save disk space) and backups are kept unlimited on the remote server (as I can do storage management there in other ways).
I was surprised just now that the script pruned my remote backups.
Right now I'm struggling because somehow my local disk keeps getting full with backups even though I don't have players on the server. Pause is on, but it looks like the container runs a backup, tries upload, and prunes remotely. I had auth issues (because the token expired) which might have caused that.
The text was updated successfully, but these errors were encountered: