MineBackup
MineBackup - Automatically save and backup your server!
Features
- Numerous backup actions: Save (default); Copy and/or Compress. The copy action creates a copy of files in backup folder while the compress action creates a zip of files in backup folder. You do not need to enable both for compress to work.
- Numerous upload actions: Dropbox; FTP. These actions will upload the latest compressed version, so you will need to be using compression.
- Maintenance action: Cleanup. With this action enabled, old backups will only be deleted as scheduled (otherwise they will be deleted after a copy/compress action).
- Each action has a configurable interval. You can even set a specific time that an action should trigger (only once per day). Every action supports either method.
- You can either enable actions globally (default for all worlds) or enable/disable actions for specific worlds. Specific worlds can even have different time intervals for each action!
- Global or per world configurable amount of backups to be kept on disc. So a world that is rarely used can be compressed every few hours and set to have less copies retained.
- Global or per world configurable broadcast of backup status.
- Setting to enable an immediate backup on server restart/reload with configurable delay. With this disabled (default), scheduled actions will occur at their proper time, but if the server was stopped during that time, then it will run as soon as possible.
- Backup actions are staggered to try to prevent low-powered servers from getting overloaded. Instead of checking every world at one time and in order, a queue is checked once a minute to see if it needs to do a backup action.
- If no one has used the world since the last backup ("not dirty") then its actions are skipped.
- Able to backup plugins/other directories with a list of excluded paths (like dynmap's /tiles) and file types.
- Customizable messages. Everything sent to players is able to be translated or changed. Including broadcast groups.
- Configuration migration with a backup copy of the original configuration.
Caution
Does your server have a single-core processor or a low amount of memory (512mb and several plugins)?
Do NOT enable compression! Only enable copy.
Does your server operate over a typical home internet connection?
Do NOT enable dropbox or ftp!
Failure to understand this will almost certainly result in all of your players being disconnected.
Notes
[v0.5+] Due to changes to the old backup deletion code, the plugin will not automatically delete any v0.4 backups. You will need to manually delete them at an appropriate time.
[v5.9.2+] If you still have the old map format (world height 128) files in your world folders, it's going to yell at you on server startup. Once you have a backup of the world, delete level.dat_mcr and the *.mcr files in the region folder. They aren't needed after the conversion and double the size/time of the backup.
[v5.9.3+] Enable 'debug' in config.yml for a detailed list of the settings that are being used as each world/plugins is loaded. (Exact times are seconds from midnight, but stored as a negative number.)
Setup & Usage
Only save is enabled by default. You need to enable either 'copy' or 'compress'.
Download
MineBackup.jar (for auto-updaters)
Source
Default Config (created first start)
Default Strings (created first start)
Dropbox Linker (Google App Engine)
Credits
ThisIsAreku for the original MineBackup. This plugin has now been completely re-imagined and rewritten. The only thing untouched and unchanged is the name itself.
-
View User Profile
-
Send Message
Posted Apr 15, 2012I really like this plugin, makes it a breeze to have a backup ready, but since my server is in the Netherlands right now the time indicated and the date on each backup isn't accurate for me, I always have to correct the date and time manually, is there any ways to make a correction in the Minebackup utility to set the correct date and time according to the choice of region. I asked them if they could correct the time on my server but its not possible for them to do this, I would probably have the same problem if the new server I choose is in California or anywhere that isn't GMT-5.
-
View User Profile
-
Send Message
Posted Apr 15, 2012I have the following Problem:
2012-04-15 22:29:15 [SEVERE] [MineBackup] # copy: ./minebackup/world_the_end -> ./minebackup/world_the_end/2012-04-15_22-28-53 2012-04-15 22:29:15 [SEVERE] [MineBackup] java.io.FileNotFoundException: ./minebackup/world_the_end/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/2012-04-15_22-28-53/15042012-141100/DIM1/region/r.0.-1.mca (File name too long) 2012-04-15 22:29:15 [SEVERE] [MineBackup] java.io.FileOutputStream.open(Native Method) 2012-04-15 22:29:15 [SEVERE] [MineBackup] java.io.FileOutputStream.<init>(Unknown Source) 2012-04-15 22:29:15 [SEVERE] [MineBackup] java.io.FileOutputStream.<init>(Unknown Source) 2012-04-15 22:29:15 [SEVERE] [MineBackup] ltguide.base.utils.DirUtils.copyFile(DirUtils.java:42) 2012-04-15 22:29:15 [SEVERE] [MineBackup] ltguide.base.utils.DirUtils.copyDir(DirUtils.java:36) 2012-04-15 22:29:15 [SEVERE] [MineBackup] ltguide.base.utils.DirUtils.copyDir(DirUtils.java:35) 2012-04-15 22:29:15 [SEVERE] [MineBackup] ltguide.base.utils.DirUtils.copyDir(DirUtils.java:35)
-
View User Profile
-
Send Message
Posted Apr 12, 2012<<reply 647416="">>
Great, thanks ltguide! It would be very useful. There's a bunch of root files that are important - mine were wiped by a disk space error the other day and it was a nightmare! (Whitelist and banned lists, urgh...)
-
View User Profile
-
Send Message
Posted Apr 12, 2012Thank you very much for your hard work!
I have posted my config to pastebin located here http://pastebin.com/hbTqJk1c
What I'm trying to Achieve:
Have my server save every 10-15 minutes. Backup my server every 3:45 minutes My server restarts every 4 hours. (simplerestart plugin)
Once my server restarts I would like to have it at the same time and point where it was before it restarted.
additional note: I have compress off to try to reduce server backup lag. Every time my server backs up it lags really bad and the users get disconnected.
-
View User Profile
-
Send Message
Posted Apr 12, 2012I have had a problem with my NPCs made via the Citizens plugin despawning at what first seemed like random intervals. Unless a user is in a chunk where they are located, the NPCs will despawn upon having a save and/or backup by this plugin. I can confirm that without running this plugin, NPCs will not disappear.
I'd very much like to use this, but I also need my NPCs.
-
View User Profile
-
Send Message
Posted Apr 12, 2012@awesomebilly
Let me see your config and I'll change it to match the times you've said. MineBackup does not "load" backup worlds. When the server crashes you lose any changes since the last save, so if your server is unstable, you probably need your main world saved much more often like every 10 minutes.
@MissPicket
Yeah, I'll add something for them in the next version.
-
View User Profile
-
Send Message
Posted Apr 12, 2012How can I make this plugin NOT Load a backup world. I would like to have manually add the world to my root folder.
Example: I back up the server at 3PM. The server crashes at 6PM I restart the server and the 3PM world data is loaded instead of using the same 6PM folder.
How can I create this to do a save-all every 1 hour, and then a /backup now every 6 hours.. but then not load that /backup now zip unless to tell it to.
I want to use the SimpleRestart plugin but my users keep telling me they get rolled back very badly.
-
View User Profile
-
Send Message
Posted Apr 10, 2012Another quick question - sorry!
Is it possible to back up files, or is it just for folders? I'd love a way to backup my logs, but they're in the root and the file is called server.log - any thoughts?
Thank you!
-
View User Profile
-
Send Message
Posted Apr 10, 2012<<reply 641613="">>
Thanks ltguide - I'm sorry, I meant multicraft backs up my main world once a day, not save it.
The thing is, with this new config, the backups haven't run. Mmmm. Will look into it further, but thanks!
-
View User Profile
-
Send Message
Posted Apr 9, 2012@P4per
You can only copy/compress to one destination. You could run a ftp server locally that is set up to write to your network storage. Then enable ftp to 127.0.0.1.
@Liger_XT5
Try it in v5.9.3 and then post config if it still doesn't upload. Wait about a minute after server starts (you should see "Loading config for ..." then do '/minebackup upload'.
@xXAnonBladeXx
Do '/minebackup upload' after you see those messages about loading config. If it still doesn't work with v5.9.3 then post your config.
@MissPicket
That config looks right. Multiple saves don't take up more space on the drive; it just writes the chunks in memory to the disk in case the server shuts off.
-
View User Profile
-
Send Message
Posted Apr 9, 2012Enable 'debug' in config.yml for a detailed list of the settings that are being used as each world/plugins is loaded. (Exact times are seconds from midnight, but stored as a negative number.)
This should help with figuring out what the plugin sees in the configuration.
v5.9.3
-
View User Profile
-
Send Message
Posted Apr 8, 2012I'm having a lot of trouble understanding this plugin's config. Any chance someone could help me configure it right? I'm running multiverse and I'd like my 2 other worlds to compress once a day, the nether to compress once every 3 days, and my plugins to compress every day - but since multicraft saves my main world, I don't want minebackup to do it, it would be redundant and take up hard drive space. Is this correct? :
http://pastebin.com/UEKneNYb
Thanks a lot for your help!
-
View User Profile
-
Send Message
Posted Apr 8, 2012I myself am having a problem with dropbox uploading. Here is what my console says:
But when I go to my dropbox folder there is nothing in apps/minebackup. Is it something I'm doing wrong?
-
View User Profile
-
Send Message
Posted Apr 8, 2012@bebess Already done. You can use "keep" for plugins.
Also compress and copy for plugins.
"Save" you can also add put that wouldn't make any affect or sence :D
-
View User Profile
-
Send Message
Posted Apr 8, 2012Could you enable the Keep option for the plugins backup plz :)
-
View User Profile
-
Send Message
Posted Apr 7, 2012Recently enabled the use of dropbox. I've set the token and have all world and plugins set to be uploaded to it. I've noticed that there isn't anything in the dropbox folder for minebackup. Is there a possible setting I missed? I enabled dropbox in the default settings and set on a schedule.
-
View User Profile
-
Send Message
Posted Apr 7, 2012ftp is not actual now
i have mouted a network drive. id like to back up once per 24h on it and make backups as they were befor - once per hour.
how can do it using this plugin?
-
View User Profile
-
Send Message
Posted Apr 6, 2012@P4per
FTP action is bugged in this version. It'll be fixed in the next release. In the meantime, you have to specify the exact world. Like change world11111 to world in the config.
-
View User Profile
-
Send Message
Posted Apr 6, 2012cant enable ftp. no errors. nothing.
http://pastebin.com/PDKbZTRM
config
http://pastebin.com/ERf0XJ4T
what im doing wrong?
-
View User Profile
-
Send Message
Posted Apr 6, 2012@ltguide
THANKS!