endofzero / Minecraft-Sheller

Shell script designed to allow for automation of Minecraft Server Administration.
62 stars 18 forks source link

additional 'purge' sub-command for synchronization. #28

Closed endofzero closed 13 years ago

endofzero commented 13 years ago

Adding an additonal purge command to sync that will allow the deletion of the offline folder before a new sync is created. I found this was required after I had deleted some chunks using worldedit for the map to render correctly.

I would say change the rsync settings to sync deletions on a 'purge' but that will also remove any extra data that is stored in that directory (biome info is the only one I can think of, but there could be more)

Any thoughts about expanding it to have both sub-commands? We could have a 'delete' and a 'purge'. One would sync deletions from the production folder to the offline, and the latter would delete the entire folder before re-adding it....

Hmm... now that I type it out, they would probably accomplish the same thing, rsync might be faster at it though...

endofzero commented 13 years ago

Fin~