Exolius/SimpleBackup — pull request #10 by mantun (2012-07-05 07:50:29+00:00)
Title: Just to let you know I changed a bit the way backups are organized

I merged your master branch before doing this, so you'll see only the real changes in this request.

#### Backups are organized differently in folders
Instead of putting zip files in separate folders:

backups/world/2012-07-01-00-00-00.zip
backups/world_nether/2012-07-01-00-00-00.zip
backups/world_the_end/2012-07-01-00-00-00.zip

a single zip is created that contains all worlds:

backups/2012-07-01-00-00-00.zip

Same thing if zipping is disabled, instead of this:

backups/world/2012-07-01-00-00-00
backups/world_nether/2012-07-01-00-00-00
backups/world_the_end/2012-07-01-00-00-00

we do this:

backups/2012-07-01-00-00-00/world
backups/2012-07-01-00-00-00/world_nether
backups/2012-07-01-00-00-00/world_the_endm

This way it is easier to manage the backups in explorer for example if you need to move old archives to another media. It also makes restoring easier, because you can restore all worlds at once, instead of one by one. And if the user needs to restore a single world only, it is still easy, this change does not make it harder.

#### The delete functionality now works with copied backups as well (when zipping is disabled)
Unfortunately, I had to do a lot of refactoring to allow the delete algorithm to work with both kinds of backups. You'll see that it uses IBackupFileManager to list available backups and to request deletions. The IBackupFileManager can be either ZipBackup or CopyBackup which knows how to list and how to delete each type of archive.

I mostly did these changes, because it is more convenient for me that way - the machine that runs my server crashes a lot and restoring worlds one by one was really cumbersome. If you like the changes you can incorporate them in the plugin.

Best,
mantun