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
@Zuksaru How big are the worlds in terms of disk space?
@ThisUsernameIsMine Delete functionality is implemented in the last update. I kind of like the suggestion of not doing backups when no one is online. Let's see if enough people want that and we may implement it. Since the idea of the plugin is to save the whole world folder I don't think in-game command to restore a backup is possible.
@TalkingBlob Have you tried to open the created zip files and see if the zipped files are actually different?
@PaulDurbaba This is implemented in the new plugin update
@hawkfalcon
@hawkfalcon
This issue seems to be unrelated to other plugins. It looks like the server happens to load/remove chunks while the save command issued from the plugin is running. It is also possible that the the plugin tries to save the world while the auto-save is running. I'll try to investigate and fix this.
Plugin updated, waiting for approval.
Updated to CraftBukkit #02222
Change-log:
1. Recompiled with code changes and feature additions submitted by Mantun on GitHub. Git hub Fork
2. Major code rewrite by Mantun
3. Added in file deletion and minor bug fixes, see config documentation below
4. Config file has changed, please backup/delete your old config and customize the new one Config Documentation
5. You can disable the "[SimpleBackup] Developed by Exolius" when the plugin loads by editing the config.
Full code changelist can be found Here
Backing up breaks a 1.5gb ram server.. like a big world edit
•Give me some suggestions in the comments below.
Here goes:
- option to set the maximum number of backups that will be made before the oldest backup will be deleted.
- option to set if the plugin will make backups when the server has been empty for x amount of time.
Is there a(n in-game) command to revert/restore to a certain/specified backup?
Thanks for the plugin :)
how to set a backup back with a command??
sorry to double post. Ive encountered a rather unique problem though. I tried to revert to one of the backups that had been created and it reverted but it was the wrong backup (too long ago). So i went to load a differnet one (more recent) and when it loaded, it was the same one from before. I cannot load any backups more recent than the first, they all just end up being the first game i reverted to. I tried loading the backup i wanted (more recent) in single player and it worked fine, but the same backup loads differently in my server because the server only loads the first backup no matter what. I've reinstalled minecraft and my server and still have the same issue. IDK why it wont load any of the more recent backups, it will load later ones but that doesnt help me much. does anyone have any idea what I could change to fix this?
@Wolf314151
They're already sorted according to date because they're named by date/hour/min/sec or whatever. I'm autosaving every ten minutes though so I will literally have hundreds of backups if I don't manage the folder myself. I wholeheartedly agree its good to keep old backups but I dont need backups from weeks ago, you know. The problem is that the folder will just keep getting bigger and bigger and I don't want my memory being occupied by useless outdated backups. I'd like to just keep about 100 backups and be able to revert to whenever I wanted. This tool is amazing, the only one I've seen like it, but I'd just like to be able to control how many backups it keeps to manage the memory its occupying.
@TalkingBlob
Sort files by date should solve that problem. It's really a good idea to keep all your backups...just in case. Sometimes you might have a bug for a week but it won't be noticible unless you, say, go to the end realm. You dont go there for a week, you assume all is well and delete that backup, and you have to start fresh (obviously in this example you could just delete the end folder but...)
This plugin is what ive been searching for! its awesome. Only thing is I wish you could specify how many backups you would like the plugin to keep in the backup folder at any given time. I want to back up my server frequently so that I can revert to a previous "save" should something awful happen; however I dont want hundreds of backups to accumulate. any way you could add a feature for max # of backups to keep? I would sincerely appreciate it
exolius, I love this plugin. It works great! There's only one feature I'd love to see, and that's the ability to put the world name (dynamically) in the custom backup message.
So something like
custom-backup-message: Backup starting for #WORLDNAME#
and in game it would appear as "[SimpleBackup] Backup starting for Creative_Flatgrass" (as an example)
My server has lots of worlds, so it'd be great to know which one is getting backed up at the time.
Maybe there's some way to do that already?
Thanks again for the awesome plugin.
The command "sbackup" can only be run by a player. Please allow the console to execute the command "sbackup" so I can backup via console.
NoLagg issue? http://pastie.org/3807468
No lagg. It is just like Markeh said; start > freeze > kick > backup done > then players can connect again. Backup is done but everyone needs to re-connect.
@MarkehMe
Thanks for giving me details about your problem, im working on the backup part of the plugin, trying to optimize it to it wont either take forever and disconnect everyone due to end of stream, or find a different way to do it.
I didn't make that very clear, we still get End Of Stream errors though.
@oman95891
@AKlarvanto
Well, no. My server has no lag at all. For whatever reason though, as the backups start I get no messages after it. It's a big map, I'll give you that. We're running with 8GB ram and on a SSD, i5 Processor. Centos 5.5.
Basically it starts, and then nothing happens. No one connects or disconnects, nothing.
2012-04-02 22:55:40 [INFO] [Backup] Backup starting 2012-04-02 22:55:40 [INFO] [SimpleBackup] Backing up /minecraft/world
Then it freezes.