-
Notifications
You must be signed in to change notification settings - Fork 20
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
Prevent imminent backups if no players logged in or server started since last backup #519
Comments
try writing that as a plugin first. Backups now has it's own API: https://github.com/benbaptist/minecraft-wrapper/blob/master/documentation/backups.rst while I am thinking of it, that method |
I think we could create a backup option to backup only "changed files" versus the whole-backup schema we currently use. If you check the gittter feed, you will note that user lukeeexd reports backup times in the 5 minute range. Doing them every 15 minutes (i.e. an entire backup) could be asking for trouble. That means 1/3 of your run-time will be with a server in the We could definitely create a more intelligent back up system. I would like to see our existing code released in a formal 1.0.0 version first.. And I think we are close once I put final touches on Web and take care of our more serious bugs. |
Even if compressed, I am sure backups are serious load on (usually valuable) SSD space. By the way, may I suggest (if you are not already doing so) setting a backup path that is not on the SSD device? You can use an absolute path to another location outside wrapper's directory, for example: |
I labeled as That is not to say that I would not like that more intelligent (and faster) backup system... Just saying that the issue 'as stated' is solved. Potentially, this is as simple as your plugin executing You might also register the |
We need to have a hints and tips page... |
I am already using backups on a non-SSD device. In fact, they're actually going to one of my networked servers with plenty of HDD space, which eventaully finds itself on my unlimited GDrive. I guess I did say "wasting tons of space", but my main concern was just annoyance of having to go through hundreds of useless backups when wanting to retrieve a backup from a particular date rather than space. I have unlimited storage on my Drive account, so it technically doesn't matter, storage-wise. So the concern was more about the clutter. I agree that a more intelligent backup system that only backs up necessary changes would be nice, but should not be a replacement. Some people do prefer having full, un-adulterated backups for 100% assurance and thoroughness. A temporal-compression system would have more effort (either from the user or from the underlaying software) to perform a proper restoration - and the loss of one backup or some other issue could potentially result in any backup being able to properly be restored. Temporal backups are better for short-term backups (perhaps within the last 24 hours, etc.) rather than long term backups. |
That being the case, as the backups are date-time stamped (and thusly sortable), is the cost of looking for a particular date worth the effort? I will say that temporal backups are probably worth the effort and should be a config optional item :) |
I'm expanding this IAW the new title. I will probably "delay" the backup timer while server is stopped and implement the player timer whilst at it. |
Ok, this is what I came up with:
This only took a few lines of code and I think it covers most things since, if a griefer came on, the world would probably backup when he logs on; and anything he is doing wont be a part of that backup! This will be in 1.0.b5 (beta build 5) |
This would be an awesome setting to have - and one that should probably be on by default, but definitely should be possible to turn off. This would prevent needless, countless backups in which no player activity took place, and hence no realistic need to have redundant backups. I want to be able to backup extremely frequently (sub 15 minutes!) without wasting tons of space during idle hours when the server isn't even being played on.
EDIT: Oh, also - I'm starting to get back into playing with Wrapper.py and such myself, so I hope to start actively partaking in the coding activity once again!
The text was updated successfully, but these errors were encountered: