Ahtenus/minecraft-init — pull request #67 by jbondhus (2012-04-13 18:38:54+00:00)
Title: Backups Script Compatibility Improvements and Bug Fixes

I improved the old system of removing backups. The old system if it is going to backup a world file called world, it removes only world.zip or world.tar.gz. This new system removes everything else in the backups folder before it is backed up. This is safe since it only does this if the backup script compatibility is enabled in the config, which, if it is, would mean that the backup script would roll backups before it erases them. This is why it is OK to do it, as the backup rolling script will remove them anyway. The reason why I don't let the backup rolling script remove them is cause if there is a foreign file, such as a half-completed backup or the like, it will roll it into a new folder, which is annoying. Unfortunately, the old system didn't fix this, it was only a partial fix for the problem. This improved system is more reliable and safer and it doesn't risk leaving pesky files and folder randomly lying around. Please take a look at my 2 commits if you want to, and although I have already tested it, feel free to test it yourself to make sure that it works properly for you too.