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.
Just to confirm, is this compatible with R0.2 of craftbukkit? If not, when can I expect it to be up and running?
Epic plugin, thank you so much! I understand he is now able to save the world? Previously, only able to make a backup copy.
@callmejordy265 The setting for keeping certain amount of backups is:
"keep: 5"
Is there a way to automatically delete backups after a certain period of time. For example, I really don't need more than five back ups at a time. It would be great if, after five, the oldest was deleted.
Perhaps you could add the feature for announcing the Progress of the currently backup for other Users too? Like: - [MineBackup] Backup has started - [MineBackup] Backup of 'world' successfully - 33% - [MineBackup] Backup of 'survival' successfully - 66% - [MineBackup] Backup of plugins-folder successfully - 100%
Many of my players ask why it lags right know, and i always have to say "sorry, backup is currently running".
Anyway to make it so it does a ftp on MY set time? Its set at 24 hours :/
@ukballer1012
saving replicates minecraft behavior, but in a controlled manner instead of a set time interval. It needs to be managed through minebackup because there is a chance that the server could save while the files are being backed up.
copying makes a copy in the backup folder of the world or plugin files.
Could you help me understand the difference between the saving and copying a bit better? What is the difference between the two exactly?
I've been trying to make some changes to this all week. FTP is included, the only stipulation is that you have to manually make the folders for worlds. If you don't, you will see an error like: 550 CWD failed. "/backup/survival": directory not found.
I think the only change that could break something is with the scheduler. I changed the way it reacts on server restart. (added a setting to revert behavior: start_covered_in_dirt: true)
@McLightning
compress: 2h (every 2 hours)
dropbox: '4:00' (4am, uploads latest backup)
I don't think the unofficial build is working very well can't seem to get it to compress world folder
/backup status
just does backup started... i mean its a broken i think.
Is there any dev builds? (Jenkins) I really need a backup plugin for 1.2.3.....
@Marium0505
doesn't my version work on R6 / R7 ?
@McLightning
well it should be, I would need to look into it again though it is not my plugin
Please update your plugin! :)
Is there any way to backup compressed 12 times a day, every 2 hours...and ONCE to dropbox or an FTP server at a specific time during the night? The config confuses me:X LOL
an UNOFFICIAL 0.5.7 incl FTP and R5 support can be found here
https://github.com/dredhorse/CraftBukkit-MineBackup/tree/master/plugin
There is a pull request available for it.
@killraven76
R4 yes, R5 no... see my post below
Anyone know if this works with R4?
@ltguide
(sorry, have been occupied with real work for a while)
Thanks for looking into the behavior of "dirty" on server restart. I actually see your original reasoning, now that you explained it. I think you are making the right call by changing the behavior because if anybody takes down their server for an extended period of time, they would still have the option to run a manual backup.
I guess you could expose a config option for it, but I would still default it to trigger the updated behavior (no forced backup on restart). My thought process is based on the idea that most people running mcMyAdmin will have it set to reboot once a day. I don't run it anymore, but I seem to remember that being part of its default configuration. If they also have a low backup count, the current behavior could really impact them in terms of viable backups.
In any case, thanks for taking care of it! :-)
@ltguide
any idea if you will include my ftp code? I wonder btw. if there is a bug in it.. I think I got it saving to separate directories during coding, but on my server it doesn't do it, could be wrong config though. didn't had the time yet to check.
concerning R5 ... 0.5.5. will break with it
I could make another pull if needed
Does this plugin need to be/or has it been updated to the new bukkit events system?