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.
In reply to jayk_live:
So after saying "Starting to save directory" it then says
In reply to jayk_live:
First, does the /backups/ folder exist in the server directory? If so, are there any files in there?
If the folder does not exist, then that is most likely why you are getting the error, as something is preventing the folder from existing. In this case, you would need to create the folder manually.
If the folder does exist, but its empty, then something must be wrong on my end. If this is the case, I'll just have to do some testing to figure out what the problem is.
In reply to Zombie_Striker_bukkit:
I tried creating the folder manualy in the server directory but im still getting that error. Should the backups folder be in the plugin's folder?
In reply to jayk_live:
It seems the update is still under review for bukkit. The plugin has already been approved on spigot. If you search for ServerRestorer on spigot, you can download the newest update, which should have a fix for this issue.
In reply to Zombie_Striker_bukkit:
Fixed! Works great now. Thank you!
Installed the latest version but when I attempt to save the world I get "FAILED TO ZIP FILE" and an empty zip file
In reply to FreakinNerd:
Can you post the full error log? There is most likely some more error messages after that message. I would need that to know what went wrong.
In reply to Zombie_Striker_bukkit:
This is all I get "FAILED TO ZIP FILE: PATHNAME". It happens for every file and results in an empty zip file at the end.
In reply to FreakinNerd:
This is the exact same problem I am having.
In reply to FreakinNerd:
Odd error. Since it is happening to all the files, I assume there is an issue reading the server directory. I'll release an update soon to print out more messages so I can figure out what exactly is the problem.
So not only am I getting the failed to zip errors. But, it is now not making a zip file at all.
Still getting, "failed to zip file" error. After update
I keep getting a " failed to zip file" error please help
In reply to KingJaski:
This should be fixed in the new update.
Hi,
Where are the backups being saved? i cant find any of the files? is it compulsary to use FTP so that it can backup? or can it just backup to a backup folder in the server files?
Thanks!
In reply to TimTam4U:
FTP is not necessary, and is disabled by default.
All backups are saved to the <server directory>/backups/ directory. If the folder does not exist, check the console to see if there are any errors.
Well I want to use sftp and I get this error when it tries to transfer the data to the server:
Can connect with every other sftp tool (FileZilla and so on...)
[17:05:30] [Server thread/INFO]: [Player] issued server command: /sr save
[17:05:51] [Craft Scheduler Thread - 6/WARN]: com.jcraft.jsch.JSchException: UnknownHostKey: [DDNS-Adress]. RSA key fingerprint is 2c:[The RSA Key...]
[17:05:51] [Craft Scheduler Thread - 6/WARN]: at com.jcraft.jsch.Session.checkHost(Session.java:805)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at com.jcraft.jsch.Session.checkHost(Session.java:805)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at com.jcraft.jsch.Session.connect(Session.java:345)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at me.zombie_striker.sr.Main$4.run(Main.java:405)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:77)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[17:05:51] [Craft Scheduler Thread - 6/WARN]: at java.lang.Thread.run(Thread.java:748)
Is there a way to make it so that it sends a message in the chat when it starts and finishes the backup process that way players can see that its happening?
would /sr enableautosaver [1h] mean that the it creates a server every hour or that it delays the command by 1 hr?
In reply to xGSxPhatal:
That would set it so the autosaver will save every hour.