[MC-4417] Command save-off does not work as expected Created: 10/Dec/12 Updated: 11/Dec/12 Resolved: 11/Dec/12 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.5, Snapshot 12w49a |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Dominic Barnes | Assignee: | Unassigned |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | None | ||
| CHK: | |
| Confirmation Status: | Unconfirmed |
| Description |
|
I am working on a server admin script, and am trying to automate backups of my world directories on regular intervals. I know the commands save-off and save-all are what I should be doing to flush the current state to disk before creating my backup. However, I am getting some unexpected behavior I believe is a bug. My backup-process is basically this:
Currently, I have to add a 5 second delay between steps 2 and 3 because otherwise, my tar command will always fail because files within the directory are modified during the attempt at creating the tar file. Something in the server output is misleading, my suspicion is either save-all or save-off is reporting completion incorrectly, or perhaps I am not approaching this backup process correctly. |
| Comments |
| Comment by Dominic Barnes [ 11/Dec/12 ] |
|
How is this resolved? save-off is not doing it's job. Or are we just considering this a duplicate of 2527? |
| Comment by Tails [ 11/Dec/12 ] |
|
Resolving then. For "save complete" issue see |
| Comment by Dominic Barnes [ 10/Dec/12 ] |
|
Yeah, understandable given it runs multi-threaded. All I'm hoping is that the devs will delay printing "Save Complete" until saving is actually complete, otherwise I can never be entirely sure when it is safe to back-up... without resorting to ridiculous loops/polling. |
| Comment by [Mod] CubeTheThird [ 10/Dec/12 ] |
|
I doubt it can, as it seems commands executed in the server terminal run backgrounded. |
| Comment by Dominic Barnes [ 10/Dec/12 ] |
|
Yeah, that seems to work better and doesn't need the full 5 seconds I was needing before. Still requires a delay unfortunately, which is what I'm hoping can be avoided. |
| Comment by Dominic Barnes [ 10/Dec/12 ] |
|
I'll give that a shot, I'll see if I get any better results. I'll report back here soon. |
| Comment by [Mod] CubeTheThird [ 10/Dec/12 ] |
|
I recently went through the same process as you, but i did something slightly differently. Does this help? |