Simple Backup
Simple backup
Works with 1.10.x and up
If you have any problems with the plugin not working leave a comment!
What can I use this for?
Simple Backup is a plugin to zip up your minecraft server worlds to a folder so you can:
- Let your users download them via file sharing websites such as mediafire
- Roll back your map
Commands:
- /sbackup - Force a backup of your world by running. Can only be ran by OPs or from the server console.
Providing error reports:
When pasting large amounts of text please use http:pastebin.com or http:dev.bukkit.org/paste/. They are completely free and makes it easier for me to read any error messages you provide.
Also provide your SimpleBackup config file and the version of the plugin you are using, when stating you have a problem, so I can see if that's the problem instead.
Configuring:
Click here for an explanation of how to configure this plugin.
Rolling Back Maps:
Click here for how to roll back your maps.
Updates:
This plugin is generally updated when a significant change (new features or bugfixes) has been made to it. The plugin uses only a small number of very basic Bukkit API calls, so it most probably won't break on Bukkit updates. If it does break, we'll update it as soon as possible.
Want to help me out?
You can donate to Simple Backup if you love the plugin to bits and want to show me some support by clicking the donate button in the top right! Don't want to or can't donate?, then just leave a comment showing me support instead.
Thanks for any support you give me, and enjoy simple backup!
Source Code
The source code for this plugin can be found on Github here: SimpleBackup Git Repository
Thanks to Mantun for submitting my first pull request and consistent code changes and improvements! Github
I've been having problems restoring via Worldedit, it errors, or only pastes about 1 third or less and it is annoying as ....
I was hoping you could check or make it happen to let the plugin check the backupped file against the world, so that uneven bits surface.
Thanks.
We run into problems regarding restoring from backup, it would be nice if there was a section in SBACKUP that can exclude folders from backup....
Mojang did it again with 1.17...... no surprise at all, as usual....
The following error message pop up every time I try to backup (both manual and automatic):
Unable to backup file: (Server Location)\.\world\session.lock(The process cannot access the file because another process has locked a portion of the file)
Server is on 1.16.4 paper
In reply to staplepuppy3521:
It is not bad, I have it too but if you want to make sure your world is safe, turn the server off and perform a manual zip file.
Personally I can afford this, but you might not.
Hey it keeps saying another file is locking it so it ends up saving a zipped folder containing nothing but the plugins
Ah, been waiting for some updates in Spigot, Worldedit and Worldguard. Did august 20th a test and after those actions (updating etc...) I came to the conclusion that SimpleBackup works again.
The only error it gives is the lck file in the worldfolder, but I tried to restore a small part of the world and this worked nice as before.
So, from version 1.16.2, Worldguard 7.0.4-beta 1 and worldedit-bukkit-7.1.0 and it works...
in the latest 1.16 version SimpleBackup no longer creates files from the other worlds. Who also has the problem?
[14:00:03] [Craft Scheduler Thread - 5/INFO]: [SimpleBackup] Backing up .\world_nether\.
[14:00:04] [Craft Scheduler Thread - 5/WARN]: [SimpleBackup] duplicate entry: level.dat
java.util.zip.ZipException: duplicate entry: level.dat
at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source) ~[?:1.8.0_231]
at com.exolius.simplebackup.ZipBackup.zipFiles(ZipBackup.java:59) ~[?:?]
at com.exolius.simplebackup.ZipBackup.zipFiles(ZipBackup.java:55) ~[?:?]
at com.exolius.simplebackup.ZipBackup.createBackup(ZipBackup.java:28) ~[?:?]
at com.exolius.simplebackup.SimpleBackup.doBackup(SimpleBackup.java:189) ~[?:?]
at com.exolius.simplebackup.SimpleBackup$1.run(SimpleBackup.java:82) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.1.jar:git-Paper-27]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.1.jar:git-Paper-27]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.1.jar:git-Paper-27]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_231]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_231]
In reply to blueeyestar:
Yup, found that it refused to go past a part of the world, so only backing up 1 world and not three (or so)
[12:28:29] [Server thread/INFO]: [SimpleBackup] Backup starting
[12:28:29] [Server thread/WARN]: A manual (plugin-induced) save has been detected while server is configured to auto-save. This may affect performance.
[12:28:29] [Thread-129/INFO]: [SimpleBackup] Backing up .\world\.
[12:33:00] [Thread-129/WARN]: [SimpleBackup] Unable to backup file: E:\MC-CONVERT\AM\.\world\.\session.lock(The process cannot access the file because another process has locked a portion of the file)
>version simplebackup
[12:42:31] [Server thread/INFO]: SimpleBackup version 1.8
[12:44:34] [Thread-129/INFO]: [SimpleBackup] Backing up .\world_nether\.
[12:45:08] [Thread-129/WARN]: [SimpleBackup] duplicate entry: level.dat
java.util.zip.ZipException: duplicate entry: level.dat
at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source) ~[?:1.8.0_251]
at com.exolius.simplebackup.ZipBackup.zipFiles(ZipBackup.java:59) ~[SimpleBackup-1.8.jar:?]
at com.exolius.simplebackup.ZipBackup.zipFiles(ZipBackup.java:55) ~[SimpleBackup-1.8.jar:?]
at com.exolius.simplebackup.ZipBackup.createBackup(ZipBackup.java:28) ~[SimpleBackup-1.8.jar:?]
at com.exolius.simplebackup.SimpleBackup.doBackup(SimpleBackup.java:189) [SimpleBackup-1.8.jar:?]
at com.exolius.simplebackup.Commands$1.run(Commands.java:24) [SimpleBackup-1.8.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
[12:45:08] [Server thread/INFO]: [SimpleBackup] Backup completed, start again after 48 hours
>
Going to check other servers now....
Yup, other servers too..... so, this is going on for a while now.... not making copies of all worlds per server....
Hope this can be fixed...
In reply to blueeyestar:
Hey, just for comparison, we use Spigot 1.16.1, do you use Paper? because you have a different error = resulting in partially or no backup at all....
This must be fixed, don't you think so?
ps. these files are useless for restoring too, gives errors.....
Is there a way to have multiple start-times in the config? Example: I want to back up at 12:00 and then again at 18:00.
Works great with spigot 1.15.1
Thanks!
Can you use an absolutely path for the backup-folder?
Like:
And does simplebackup do a "save-all" before backing up?
Can you help me, I can't seem to grasp how to configure it to make a backup every 6 hours and and only keep one per day in the past, and delete anything older.
SB fails to notice any world but the default ones
[10:13:15 INFO]: [SimpleBackup] Enabling SimpleBackup v1.8
[10:13:15 WARN]: [SimpleBackup] Not all listed worlds are recognized.
[10:13:15 INFO]: [SimpleBackup] Worlds [CraftWorld{name=world}, CraftWorld{name=world_nether}, CraftWorld{name=world_the_end}] scheduled for backup.
[10:13:15 INFO]: [SimpleBackup] Folders [.\mstore, .\plugins] scheduled for backup.
[10:13:15 INFO]: [SimpleBackup] Backup scheduled starting in 4.0 hours, repeat interval: 4.0 hours
[10:13:15 INFO]: [SimpleBackup] Enabled.
I'm running two other worlds with folders named world_test and world_city
backup-worlds:
- world
- world_nether
- world_the_end
- world_test
This really could use a feature to unzip directly on the server. Having to download a backup, unzip then reupload a world when your host caps the FTP connection speed at 50kb/s is annoying as hell.
In reply to LaserCucumber:
Please add option to zip each world to its individual world zip, looking for a backupper to use for world edit snapshots, the old one i used is no longer active :(
This one looks promising
Well at least i can post using opera , this damn site wont play ball with my firefox ??
Edit - learned something new, the complete zip containing all my worlds also worked in worldedit snapshots awesome :)
Can't change interval. Always reverts back to default 1.0 in config..
How do I find the file that my backups go to? Plz help - I made a tnt wars server with plugins and I want to back it up so I can play on it and then reload it and play again.
@exolius
Hello! First i would like to thank you for this extremely useful plugin and the fact that it is not dead) I wonder is it possible to add Dropbox support, like may be here?
Update: auther won't add dropbox functionality. Instead if somebody would like to upload backups to their dropbox, one can use this. It uses unix cron jobs to regularly connect to dropbox and upload specified files/folders.