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.
@number1Master
It's just a warning letting you know that the pre-1.2 map files are still in your world folders. (it's not talking about the minebackup folder) You should delete them from each world since it'll essentially double the backup size.
You've also got cleanup set to trigger every 6.5 minutes.
@bebess
It uploads the latest zip (compress) of whatever you enable it on, be that global (all worlds & plugins), or plugins, or specific worlds. If you leave file exceptions as default for plugins then the zip won't have dynmap files in it.
You could set "ftp: 7d".
@DonRedhorse
In config.yml, set debug: true
[INFO] [MineBackup] * queuing ftp upload of latest worlds\survival
wait for upload thread to check...
[INFO] [MineBackup] * ftp uploading .\minebackup\survival\2012-04-06_03-33-52.zip
[WARNING] [MineBackup] % failed to login to ftp server
or other error, or:
[INFO] [MineBackup] \ upload done 181.96ms
Can also test it with '/minebackup upload' which will force it to upload quickly as opposed to waiting for proper time.
@davomgz
It was supposed to. Apparently I didn't put in the right config key to broadcast when it was done. It'll be fixed in the next release.
Is a message supposed to display when saving is done? I have "broadcast" set to true, and I do see a message when saving starts, but nothing afterwards.
hmm doesn't look like that my ftp upload works.. any way to enable a debug logging?
There is nothing on the console.
I have a question for the ftp backup
Does it backup ALL the server ? including all worlds , plugins directory , minebackup directory , and web tiles for dynmap ?
I just want to backup the world and plugins (not dynmap) and not minebackup directory, is it possible ?
And can we do a backup ftp once par WEEK ?
I'm getting this: http://dev.bukkit.org/paste/vpf16a8zce24ku9i/
I did delete the old worlds and stuff, but ... ya that still appears. Should I just delete my entire Minebackup folder? The only things backing up properly are the plugins and world. Here is my config.yml:
http://pastebin.com/tG8v0GrN
@zeldafan99
I would need to see your config. pastebin or such?
Wow.. this plugin sounds amazing. I'll try it out tonight.
Thanks.
i seem to have set it up correctly but when i do backup now is only backs up the nether and the end, it doesn't seem to do anything to the main world. any ideas?
@ThisUsernameIsMine
I'm not sure exactly what you mean by "halt the backup process if the server becomes empty" versus my text. It will do one last set of backup actions for a world after the last player leaves the world (but not immediately, it still follows the intervals set).
Does MineBackup halt the backup process if the server becomes empty,
or does •If no one has used the world since the last backup ("not dirty") then its actions are skipped. come into play for this?
Thanks! :-)
Scenarios with example configurations.
What am I missing? Do those make any sense?
'/minebackup upload' will now trigger quickly, just like 'now'
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.2
v5.9.1
@HeavenMc
Two ways, you can either do it like you said (and I pasted for Ibb601) or add the worlds with false.
It would still save since that's is in default_actions. The copy on the world will override the default_actions.
@lbb601
ipad ate my reply :(
Fix the case of WORLD if it's not really uppercase.
Make sure that remote tool kit is forcing chunks to unload when it saves otherwise you'll run out of memory.
Make sure you have a password set under ftp: and that you've created a 'world' folder on the ftp server. (you'll get an error message) As long as you have at least one compressed backup, you can test with '/minebackup upload' (will ftp within 5 minutes as opposed to waiting until midnight)
I cant get the ftp to work :( Also the config file is VERY confusing and hard to use. Sometimes it doesnt even follow what i say in the config. If possible... could you make me a config with the following specifications: WORLD backs up every 6 hours, and keeps 3. Plugins backs up every 4 hours, and keeps 10. BOTH compress. Ftp's at midnight for the world files only. Doesnt save at all (I have remote tool kit that saves) and doesnt backup the end or nether.
@ltguide
I haven't touched the strings, they're default. I should also note that when this occurs,im unable to use the broadcast command both ingame and from the console and only a restart fixes it
@Kevdama
As you can here:
I pass control off to broadcastMessage(), a craftbukkit function. So somethings wrong with PEX not liking your broadcast settings. Did you change them or are they still default in strings.yml?
Im getting the following error every minute constantly:
This error starts occuring every 1 minute after the following PEX error occurs:
It doesnt occur always, it occurs sometimes. A server restart usually fixes it. I have the latest dev CB build, latest Minebackup and latest PEX