ServerRestorer
ServerRestorer
A bukkit plugin for backing up your server.
Features:
- Backs-up the full server directory, including plugins, worlds, and config/property files.
- Compresses backups. Can reduces the files down to 1/4th the size.
- Includes automatic scheduled backups. Delay between backups is configurable.
- Anti-Lag: Your server will not freeze when backups occur.
- Fast backups: Saving servers can take less than a minute.
- Small plugin size.
- Supports FTP: Upload your backups to your home computer
- Backup limits: If you're limited on space, you can configure limits to the amount of backups that are stored.
- Will be continuously updated.
Compression:
Using compression techniques, we can decrease the backup size by up to 300%. When tested, this plugin can reduce a 2.82GB server down to just 0.98GB.
Removes useless files:
ServerRestorer has built in filters to make sure you are not saving useless files. Files such as logs files, which can be GBs in size full of console spam, and server.jar files, which cannot change, are not included in backups. Doing this can reduce the back file size by GBs. If you wish to store these files in the backups for some reason, you can always enable serverjar backups in the config.
FTP:
ServerRestorer supports FTP! You can now transfer backups directly from the server to your home computer or to another server.
Commands:
- /sr save - Forces the save
- /sr reload - Restores the server back to a previous backup
- /sr enableAutoSaver [delay] - Changes the auto saver delay
- /sr disableAutoSaver - Disables the autosaver.
Permissions:
- "serverrestorer.*" - Contains all the permissions below
- "serverrestorer.save" - Allows the user to access /sr commands.
This plugin collects stats using bStats:
Bestats only collects information regarding your system architecture, the server version, and plugin version. If you really do not want any of this information being sent, you can disable bstats by going into the config and setting: "enableStats" to false.
Is it possible to set option to delete old backups after lets Say 5 backups...
In reply to Spicy_Gun:
Currently, you cannot delete backups by date. However, you can set a size-limit for the backups, so you can specify how many backups can be made before the oldest ones get deleted.
Any known bugs? i run sr reload and nothing happens. i see User has used server command "sr reload" but thats it. nothing happens. Running latest on a 1.12.2 server. Should i be running a older one?
In reply to PhoenixDIE:
Currently, there are no known bugs. However, it can take several minutes before the backup is fully saved. You should see a message in the console when the backup is done.
In reply to Zombie_Striker_bukkit:
Yes, i have seen the that it takes a min to complete a save and compress the backup. thats fine, but when i type "sr reload Backup119-8-0-15-31" it just does nothing. i get no error or anything. no lag. no server freeze. just nothing. but sr save works. Meh, at least theres a backup :D
In reply to PhoenixDIE:
Are there any errors in the console when you issue the reload?
Also, are you using a server hosting service? Sometimes, certain hosting sites do not allow plugins to modify files other than the config.yml, which would mean you would have to manually install the backup to revert the changes.
In reply to Zombie_Striker_bukkit:
No, Hosting this my self on my own machine. And no, there are no errors. it does nothing. I am using a bukket/forge crossover server file. that might be whats causing the issue but it really doesn't make sense why wi would be since the rest of the commands are working fine :(
In reply to Zombie_Striker_bukkit:
if your able to can you check out this link for the server file? https://www.reddit.com/r/feedthebeast/comments/ap2irj/catserverthe_new_bukkitforge_server_core_for_1122/
Its bukkit/forge crossover and it seems to work really well with a few small issues. but so far most plugins i have install are working. But everytime i type /sr reload {zipfile} it just does nothing. No response. any ideas on why?
Hello, I love the server restorer plugin, but I have an issue. The server restorer is backing up my Dynamic Map folder which is FULL of jpeg images to produce a 3D image of the world. Is there a way to exclude the dynmap plugin folder from the backup? It makes the file size very big...
In reply to snnacks:
Yes. The config has a section to exclude certain directories from being saved. I would recommend you just add the dynamap folder's name to the list to stop it from being backed up.
I am having a problem with the plugin, it is not restoring the server correctly. Like when I save the world, destroy something, then load the backup, the destruction is still there. It also seems to load backups that I have deleted...
Hay thanks for the awesome plugin
It works great
I was wondering is there anyway u could add support for backup to cloud services like Google Drive, Dropbox, MEGA
That would be really useful cause my server size has increased by a lot in the last few days.
What are the units for the delay?
Specifically, what would I input for a 1-hour delay?
In reply to Bavorn2975:
1H
Can't get the plugin to run on a 1.14.4 paper server, plugin version 1.0.20.
Error code:
[14:38:34 INFO]: [ServerRestorer] Enabling ServerRestorer v1.0.20
[14:38:34 ERROR]: Error occurred while enabling ServerRestorer v1.0.20 (Is it up to date?)
java.lang.IllegalArgumentException: Cannot translate null text
at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[patched_1.14.4.jar:git-Paper-147]
at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:354) ~[patched_1.14.4.jar:git-Paper-147]
at me.zombie_striker.sr.Main.onEnable(Main.java:113) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.14.4.jar:git-Paper-147]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) ~[patched_1.14.4.jar:git-Paper-147]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) ~[patched_1.14.4.jar:git-Paper-147]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) ~[patched_1.14.4.jar:git-Paper-147]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) ~[patched_1.14.4.jar:git-Paper-147]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:474) ~[patched_1.14.4.jar:git-Paper-147]
at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:282) ~[patched_1.14.4.jar:git-Paper-147]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:869) ~[patched_1.14.4.jar:git-Paper-147]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_201]
[14:38:34 INFO]: [ServerRestorer] Disabling ServerRestorer v1.0.20
In reply to Kevazy:
I got the 1.0.19 version to work on my server. Using paper as well.
In reply to blankair:
Seems to be working for me too, thank you very much!
Is it possible to set a backup interval in a number of minutes such as "30M" or "0.5H"? Other than that, your plugin is 9.5/10!
In reply to sebiketchup:
I believe I included "H" as an option for hours. If not, you can always use "0.02D" for 30 minutes.
Having issues getting the plugin to run on 1.14.3 paper server. Any help would be dope. Plugin version 1.0.20
[ERROR] Error occurred while enabling ServerRestorer v1.0.20 (Is it up to date?)
java.lang.IllegalArgumentException: Cannot translate null text
at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[patched_1.14.3.jar:git-Paper-134]
at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:354) ~[patched_1.14.3.jar:git-Paper-134]
at me.zombie_striker.sr.Main.onEnable(Main.java:113) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.14.3.jar:git-Paper-134]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) ~[patched_1.14.3.jar:git-Paper-134]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) ~[patched_1.14.3.jar:git-Paper-134]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) ~[patched_1.14.3.jar:git-Paper-134]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) ~[patched_1.14.3.jar:git-Paper-134]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:464) ~[patched_1.14.3.jar:git-Paper-134]
at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:282) ~[patched_1.14.3.jar:git-Paper-134]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:859) ~[patched_1.14.3.jar:git-Paper-134]
at java.lang.Thread.run(Thread.java:813) [?:1.8.0_212]
Edit: So after downgrading the version to the first 1.14 release I got the plugin to load. But now I have an new error when it saves. Also does not seem to be auto saving for the selected time. Here is the error for version 1.0.19
[INFO] SmokedAir issued server command: /sr save
[INFO] [ServerRestorer] FAILED TO ZIP FILE: /home/gs-41828/mysql/my
[WARNING] java.lang.NullPointerException
[WARNING] at me.zombie_striker.sr.Main.folderSize(Main.java:492)
[WARNING] at me.zombie_striker.sr.Main.folderSize(Main.java:496)
[WARNING] at me.zombie_striker.sr.Main.folderSize(Main.java:496)
[WARNING] at me.zombie_striker.sr.Main$3.run(Main.java:267)
[WARNING] at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84)
[WARNING] at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
[WARNING] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[WARNING] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[WARNING] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[WARNING] at java.lang.Thread.run(Thread.java:813)