Simple Backup
Simple backup
Works with 1.10.x and up
If you have any problems with the plugin not working leave a comment!
What can I use this for?
Simple Backup is a plugin to zip up your minecraft server worlds to a folder so you can:
- Let your users download them via file sharing websites such as mediafire
- Roll back your map
Commands:
- /sbackup - Force a backup of your world by running. Can only be ran by OPs or from the server console.
Providing error reports:
When pasting large amounts of text please use http:pastebin.com or http:dev.bukkit.org/paste/. They are completely free and makes it easier for me to read any error messages you provide.
Also provide your SimpleBackup config file and the version of the plugin you are using, when stating you have a problem, so I can see if that's the problem instead.
Configuring:
Click here for an explanation of how to configure this plugin.
Rolling Back Maps:
Click here for how to roll back your maps.
Updates:
This plugin is generally updated when a significant change (new features or bugfixes) has been made to it. The plugin uses only a small number of very basic Bukkit API calls, so it most probably won't break on Bukkit updates. If it does break, we'll update it as soon as possible.
Want to help me out?
You can donate to Simple Backup if you love the plugin to bits and want to show me some support by clicking the donate button in the top right! Don't want to or can't donate?, then just leave a comment showing me support instead.
Thanks for any support you give me, and enjoy simple backup!
Source Code
The source code for this plugin can be found on Github here: SimpleBackup Git Repository
Thanks to Mantun for submitting my first pull request and consistent code changes and improvements! Github
@LeemurBFB Sorry, you can only backup folders relative to the working directory of the server.
thanks things seem to be working now :)
Hello! Great Plugin!
Can I backup a folder from disk C:/ together with my worlds ?
@madjack0003
I've done some quick testing, this is because the default values for backup-worlds and backup-folders were blank, I've added default values for backup-folders only because backup-worlds seems to cause the plugin to not back anything at all up, change this for whatever folders you need to backup like so:
DON'T ADD THE DEFAULT WORLDS, IT WILL CAUSE THE BACKUP ZIP TO CORRUPT BECAUSE OF DUPLICATE FILES
To backup alternate maps for the moment please use the 'backup-folders' config entry NOT backup-worlds.
I've also updated it to the latest reccomended build of bukkit 1.3 #2317. Expect it to be approved soon.
simplebackup isnt backing up all of my worlds :/ When i change config and start server default config comes back up. Any ideas?
@Baglex The plugin creates the backup in a separate thread so it will not lock up your server. You may have some lag spikes at the beginning, because the plugin saves your worlds before backing them up. The world saving needs to be done in the main server thread and is unavoidable in any backup plugin. The word saving is done periodically by the server anyway so you won't get a worse lag than a normal world save.
I need this to backup all my worlds and my plugins folder.
My worlds are quite big and I've heard of servers locking up from plugins like this backing up very large worlds.
Will this be an issue? Can this do what I want? Thank you :)
Plugin updated:
1. Backup is skipped if no one was online since last backup Github Pull 12
2. Ability to backup additional folders, e.g. the plugins folder Github Issue #12
3. Updated to Bukkit recommended build 5 #2262
@krone6 Backing up the plugins folder makes a lot of sense. However it may not be very reliable depending on what plugins you have installed. There is no way to notify all other plugins that you want to access their data. Even if you notify them, there is no guarantee they will cooperate by flushing and closing their files. This means in the plugins folder there might be locked files or files that are currently being written. Trying to backup such files may either fail the backup operation or it may include a corrupted version of the files in the backup. So, with plugins that write data frequently in their files (e.g. some loggers), you probably should not backup that folder.
Nice plugin, however are you planning on backing up the plugin folder too?
@mantun
Yes! That would be awesome.
I'll also suggest the ability to customize backup to certain worlds at different frequencies. For example, backup the surface world every hour, but the nether or the end once every 4 hours (and/or support Multiverse).
Can log in checks be done per world on the same server? :O
@bobsayshello There is no way to check if two backups are identical. Two backups can be identical only if no one has logged on between them. What can be done is the second backup is not created at all if no one has been online since the last backup. This was requested in the past as well, so I'll think if we can add it.
Is there a way to check for and delete backup zips that are identical?
New version approved!
Tested with CraftBukkit #02222
Change-log:
1. Re-organised backup folder structure. Github Pull 10
2. Added customised backup completion messages Github Issue #11
3. Misc code changes
@SuperJ9587
Added customized backup messages, will upload plugin shortly. There have been changes to the way backups are organised, please see here for the changes, hopefully this can fix your problem.
Github Pull Request 10
Was wondering if you could add a feature to customized the 'Backup Complete' text, just like you did for the starting text and add it into the config.yml. Also, I'm unable to get it to zip up the worlds, it just places the world, world_nether, and world_the_end into my backup folder. Any reason for this? I have the disable-zip: false active.
@PCfan98 I have not tested this, but it should work.
Does this work with MultiVerse worlds?
New version Approved!
Tested with CraftBukkit #02222
Change-log:
1. Fixed server freeze when running manual backup. Github Issue #4
2. Fixed issue with exception occuring on automated backup. Github Issue #3
3. Minor code changes
Download
@AKlarvanto
@dockter
@Zuksaru
@MarkehMe
When forcing backup manually (with the sbackup command, not the scheduled backup), the backup is done in the main server thread causing global server freeze while backup is created. I'll fix it by starting a dedicated thread for it.