WorldSaver
WorldSaver - Schedules Backups and Saves:
Version: v1.4 (1.1-R4)
This plugin will save all active worlds on a schedule and also back them up. This originally started as a small project for a server I play on, and I guess I went a little overkill and made a full-out plugin, so I went ahead and decided to release it here. My first plugin, I appreciate feedback! Making a Bukkit.dev page right now.
Features:
- Force a save of all worlds (does not affect scheduled saves)
- Force a backup of world (does not affect scheduled backups)
- Schedule saves of all worlds
- Schedule backups of world
- Get the current date/time of the server
- Save Plugins folder [without .jars to save space]
- Save Plugins folder [with .jars]
- Warning message before save/backup
Download the plugin HERE
- Source Code:
https://github.com/knoxcorner/WorldSaver
Released under
- GNU GENERAL PUBLIC LICENSE Version 3
- Commands:
/ws help [page#] (Shows help for worldsaver)
/ws forcesave (forces a world wide save)
/ws forcebackup (forces a backup of the server
/ws setsaveminute [#of min] (set the save interval (minutes))
/ws setbackuphour [#of hours] (set the backup interval (hours))
/ws saveroutine (toggles save routine on/off)
/ws backuproutine (toggles backup routine on/off)
/ws servertime (returns the current time of the server)
/ws forceoptionssave (Forces a save of WorldSaver's options)
/ws reloadoptions (Reload's WorldSaver's options)
/ws viewoptions (Shows current settings for WorldSaver)
/ws plugininfo (Shows plugin details)
/ws optionsdefault (Set options back to default)
/ws autosavemanage (Toggles whether to let worldsaver manage the /save-off /save-on of all worlds (When enabled and a saveroutine is on, it will turn /save-off otherwise if there are no saveroutines, it will /save-on automatically)
- Permissions:
None yet! Only ops can use it, hopefully I will have it next version.
- Source Code:
For next version...
- Max number of backups to keep
- Proper permissions (not just Ops)
- Stop server on next backup
- Implement the disable command in the config
- GIVE ME MORE IDEAS
- Change log:
Version 1.4
- Change log:
- Backups improved
- Editable messages
- Some other stuff I can't remember
Version 1.3
- Options now accessible from config.yml
- Ingame savepluginfolder(all) command rempved
- Changed togglesaveroutine and togglebackuproutine to saveroutine and backup routine
- Added options in config.yml for turning on/off broadcasts messages
- Exclude worlds options in config.yml
- Exclude plugins options in config.yml
- Fixed a stupid mistake where it would backup the plugins folder for as many times as active worlds you have (Should mean a big difference if you have multiple worlds)
Version 1.2
Delay between broadcast message and save/backup
Set options to default /ws optionsdefault
Now saves players PROPERLY
Send important warning to online Ops
Let WorldSaver manage /save-on and /save-off
Version 1.1
- More organized commands
- Now saves/backs up all active worlds
- Ability to save Plugins folder [with/without .jars]
- /ws viewoptions feature
- Better timestamps
- Broadcast message (possibly lol) fixed
- Checks for outdated options Version 1.0
- Release
For those of you wanting to update, please use the link on this page in the description ("Download the plugin HERE") until the newest download is approved. Apparently I did something wrong but don't understand what so it might be a while till its approved.
@Infuscu
If autosave is turned on, it will turn off (/save-off) automatic saving by Bukkit. Leaving it on sort of defeats the purpose, because it will be saved each time a block is placed.
@rodier
The lag should have definitely improved in the version I'm about to release. If you check on the Bukkit forums you can already download from there. It starts counting as soon as the plugin is started.
@commanderAIK
I don't feel it necessary, the save is almost instantaneous.
Please enable broadcasting when the save is finished too.
for me it just make lag when server is almost full, otherwise it work normall on R1
Anyone know how to affect WHEN schedule backup start counting? if I have there 12 hours.. when it start count? when server start?
Can you update this? And let us change the message?
Still saves just fine using 1.0.1-R1 . But the backup seems to be broken and crashes my server.
Looks Great! I used to use Autosave but it broke with 1.0.0 and the guy doesn't plan on updating it.
What does this mean?
-Let WorldSaver manage /save-on and /save-off
Does it "/save-off" before it does the backup? I assume it'd then "/save-on" after the backup has finished. If this is how it works .. why is that important?
Thx for this easy and great plugin!! :)
Is there a way to set a file that it backs up too?
Confirmed working so far without a hitch on RB 1597!
Another thought I just had. What about an incremental backup with rollback? Set an interval for complete backups - once a week or so and then back up only folders that changed. then if you need to restore to a particular time, it goes back and replaces according to the last backup for that chuck or section. And each full backup could optionally wipe all previous backups.
I have no idea what's involved in that but it would allow more frequent backups and, I would think, less server load in the increments.
thanks again!
Love the plugin - Have it installed and working! a couple of things though. Ditto on how to actually list the exclusions. I see the check exclusions flags but where does it check?
Also - the backup is a mega hound! As you say in the warning, it stops all response from the server until it is done. I can only do this when no one is on. Is there a way you could either partition the backup so it only does parts of the worlds at a time or: Only backup when the last player has quit. So you have a schedule of every 6 hours, if the time arrives and there are players on it waits until the last player quits, backs up and then sets the timer for the next backup 6 hours later.
As it is I can't have it Backup automatically.
Thanks for all you work on this!
Hi, nice plugin. I was wondering how to set the worlds to be excluded from backing up. Thanks!