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.
After patching version 5.9.4 it worked fine in 1.11.x for compressed backups. But sadly 1.12.1 broke the ability to compress backups, so the configuration below is no longer valid for me so I'll have to instead use copy. I'll open an issue but I'm not sure they are being worked. I'll have our java developer look at the source to see if there is a quick and easy fix.
default_actions:
save: true
copy: false
compress: true
cleanup: false
dropbox: false
ftp: false
A 1.12 Update would be awsome.
So far, any other good backup-plugins out here?
Hi, @ltguide! Do you plan to update this for 1.10?
@Darunia18
I tried patching it with the SpecialSource-2.jar, and it seemed to work for a while. However, after a period of time with players actually on the server, it exploded into endless server console spam, and I had to forcibly stop the server.
Does anyone have plans to update this project for 1.9?
@RedstoneFuture
I'm having the same issue too. It might be able to be fixed using the SpecialSource-2.jar that is distributed with Spigot, but I'm not sure.
The plugin give a Error-messages on my 1.9 server:
[11:12:12 WARN]: [MineBackup] Task #9433 for MineBackup v5.9.4 generated an exception java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player; at ltguide.minebackup.configuration.Persist.hasPlayers(Persist.java:77) [?:?] at ltguide.minebackup.threads.SyncCall.call(SyncCall.java:51) [?:?] at ltguide.minebackup.threads.SyncCall.call(SyncCall.java:1) [?:?] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftFuture.run(CraftFuture.java:89) [patched_1.9.jar:git-Paper-480] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched_1.9.jar:git-Paper-480] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:784) [patched_1.9.jar:git-Paper-480] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:404) [patched_1.9.jar:git-Paper-480] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:714) [patched_1.9.jar:git-Paper-480] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:613) [patched_1.9.jar:git-Paper-480] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_73]
Have you a solution?
Will MineBackup be ported to Sponge? It's in the list of plugins said to be ported at some point, but there's no source for the information. And as far as I can tell, there aren't any backup plugins for Sponge yet (since the implementation came out only days ago).
A way to set what the folder will be called when uploading to Dropbox would be very useful, seeing as having over 8 servers.. things get confusing : p
Hi ltguide,
Im wondering if you can help me with configuring dropbox syncing? I have the below settings:
However after leaving it for over a day and also running '/minebackup now' it doesnt sync.
Note: I have allowed minebackup access to my Dropbox apps folder and run the command from the console which it accepted but still no backups uploaded.
[EDIT]: Code below is output from debug:true when backup run...
Does anyone have a fix for the max upload Dropbox API error?
Anyone recommend a host for FTP storage?
Can someone help me with my config? the last backup plugin I used was made my GamerX called Backup, this is a bit more advanced and not clear on some things. I have put comments in the config of areas Im not sure. All I want to do its have it backup in a different folder, in a zip, with the world folder, and its stuff in that. http://textuploader.com/rbif
How does one make it connect to a FTP Server on a Ubuntu FTP Server on a home computer from a Server ran on a VPS
This plugin works like a charm, works with 1.7.2 it would seem too. How will it go with things like movecraft or ships on the server? If they're moving around while it's backing up?
Hello, I don't know if there is any support for this plugin still, but maybe someone can help me with this issue.
I am trying to set this up. When I leave it with the default config, it backs up all worlds. But there are several worlds I don't want to back up. But when I try to disable those worlds, it also stops my main world from backing up (but it still backs up the nether, end)
Can someone debug my config please? http://pastie.org/9101977 I just want it to back up World, Nether, End, Plugins, Root. No other worlds.
Any help would be much appreciated, the plugin seems to work OK other than this problem. Thanks
@o0Julia0o
No, it still works just fine for me on my server. The config works without any issues on my end.
is this plugin dead?
I have in the config:
exclude-folders: exclude-types:
And when it backs up the plugins it doesnt copy of the jar files. Even those there is nothing listed in the exclude-types.
Very well done plying it would be nice to have Include-folders: So you could set exclude-folders: - "*", include-folders: - Essentials. That way you could only backup essentials without any other plugins :D