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.
Great plugin :)
Would it be possible to add a feature to restore from backups as well?
What about uploading backups to somewhere else eg ftp/dropbox?
@titanicnut
Why? Everything that is not in the plugins and any world folders is easily replaceable.
Is it possible to add the back up of the whole server directory as in all the files inside the folder as a option. Would be really helpful.
@DoctorBoyd
That "one more backup" is not triggered by everyone leaving the server so you can't turn it off. That backup happens by the normally scheduled delay. Then subsequent backups (by the delay) are skipped until someone has quit again or is currently online.
@ltguide
In your features section it says that MineBackup will do one more backup after everyone leaves the server.
What I want to know is can this feature be turned off?
@DoctorBoyd
This plugin backs up every x minutes. If no one is online or has been online since the last backup, it'll just try again the next time.
I'm interested in the plugin and have a question.
Can it make a backup every 90 minutes whether someone is online or not?
I'm using a similar plugin but have run into an issue. The plugin (like this one) makes a backup as soon as the server is empty.
The problem is when there is only one person online and they leave then join every few minutes.
The plugin makes backups again and again due to the server being occupied, then emptied. To avoid this I set the config of the other plugin to also make a save when the server is empty.
The problem now is that it saves ONLY when the server is empty. As soon as someone joins the console says stopping backup.
I'm wondering if your plugin can avoid this issue and just simply backup at set intervals whether there are users present or not.
Thanks.
Nice Plugin!
Question:
What happens if i define "plugins" as a world in the config? Would Minebackup back it up?
Greetz,
snitride
Backup plugin directory? :D
I've got the next week off so expect some development!
Plugins are not backuped at the moment, even when the option in the config is checked, right?
Hope that comes in the future. The Databases stored in some plugin directories are important. I'm glad that someone took this over.
It seems to work fine on RB 1597. But will you officially update to RB 1597? We had some problems in the past with another dated backup plugin, so I'm always a bit worried about using such.
Will this be updated to 1.0, or does it need to be? I always get nervous with backup plugins because they sometimes make bad backups of worlds beyond their version. Thanks
What's the unit of the Backup-interval?
I love the plugin. Does this work with non standard world locations? I moved my world location as allowed in the bukkit.ymlwith the world-container: setting, but I cannot get MineBackup to backup those worlds now that they are moved.
You really need to update this one to 0.4.8.5 for CB 1337 and implement the plugin back up, i know you are but i would love to see it now or in the next week?
Request: The config has a days-to-keep... I think it would be useful to have a config for the number of backups to keep.
Measuring by number of days will not produce a predictable number of backups since backups "pause" during inactivity. (So at an 8 hr save interval, one day may represent 3 backups, while another is only 2).
It sounds like you have some exciting things planned for this plugin.. Can't wait!
I'd like to request an option for putting all the worlds and the plugins folder into a single zip when it does the back-up.
Also a way to disable the save on server start/reload.
@ukballer1012 The world folder contains all the player data, like inventory and location, for that world. (Unless a plugin like MultiInv controls it.)
So will people lose their home locations when you upload a backed up map?
@Dr_Proffesor There's nothing that calls home in this. That must be from another plugin.