AutoSaveWorld
AutoSaveWorld - multifunctional plugin that can save, backup, purge, restart the minecraft server, reload plugins and much more.
AutoSaveWorld will work on any bukkit/spigot/mcpc+/cauldron build starting from version 1.2.5-R5.0
Version: 4.14.2
Features:
Note: all feautures except autosave are disabled by default.
- Performs a world and players data saves (similar to save-all in console)
- Performs a world backups({server folder}/backups/)
- Performs some plugins data purge
- Performs autorestart at a defined time
- Performs restart at server crash
- Executes console commands defined in config automatically
- Warning messages
- Multi-World Support
- Configurable messages
- Option to disable broadcast message
Documentation:
Note: Configuration can only be reloaded by built-in commands
AutoSaveWorld have many features:
1)AutoSave - saves your worlds and player inventory.
AutoSave documentation page
2)AutoBackup - backups your worlds
AutoBackup documentation page
3)AutoPurge - purges some plugins data
AutoPurge documentation page
4)AutoRestart - restarts server at a defined time
AutoRestart documentation page
5)CrashRestart - restarts server if it crashes
CrashRestart documentation page
6)AutoConsoleCommand - automatically executes console commands
AutoConsoleCommand documentation page
7)WorldRegen - starts server with a fresh map but preserves some plugins territory claims
WorldRegen documentation page
8)PluginManager - load, unload, reload plugins using commands
PluginManager documentation page
Messages config explanation:
Messages configuration
Additional commands:
/asw help #displays help for all comands Permission:autosaveworld.help
/asw reload #reloads config.yml and configmsg.ymlPermission:autosaveworld.reload
/asw reloadconfig #reloads config.yml Permission:autosaveworld.reloadconfig
/asw reloadmsg #reloads configmsg.yml Permission:autosaveworld.reloadmsg
/asw version #displays AutoSaveWorld version Permission:autosaveworld.version
/asw info #displays AutoSaveWorld info Permission:autosaveworld.info
Note:All commands work if you are OP, console or have permission.
Note:Config can only be reloaded using config reload commands.
Dev builds and Source code
Develompent builds: jenkins
Source code: GitHub
Hey there, I am wondering if there is a way to have the auto backups use the "time:" option like the auto restart instead of the "interval:" method?It seems to me that when I restart the server manually, it resets the interval timer.. I want there to be a backup done in mid day, and right before the auto server restart is done.I was also wondering though, if a backup is set to run just before the restart happens and is not quite done when it is time to restart. Will it wait till the backup is complete before restarting the server? Even if it has to wait a while past the normal restart time? Sometimes the upload to dropbox/backup takes about an hour for a 4gb file. Please let me know what you think, I am using 1.7 since many good mods are not on 1.8 yetEDIT: Nvm I found out about the auto consolecommand options. works good. Only annoyance is that I have it saying server restart in xx amount of hours at certain times, they are all in order and easy to read. once you save the file and reload asw, it changes the order they are listed in. I know it will still work fine. it is just annoying when you want to go edit the times again, and now have to triple check times and numbers and counting.. instead of just clicking in between two times (if they were in the order I put them in) and adding in a time with easy counting, now you need to triple check all your commands, make sure your not making a duplicate etc..
other than that im quite happy with it.
@Layania
Something is wrong with your server, npe is thrown inside server internals.
Hello,
When i start my server i have this bug (randomly) and autosaveworld don't working.
I restart the server and all working good.
I use java8, Spigot 1.8.7 and last version autosaveworld.
@Shevchikden
All of my plugins have bad behaviour then xD (All with sql connection set up.)
@MasterMithrandir They are warning about bad behaviour of some other plugins.
What are these "Plugin attempted to establish connection to <sql> connection in main server thread messages i get spammed on console on server start? Are they just random info or is something going on there?
@Shevchikden
No crash logs of any sort it would just display this in the console. The only the first server started does not get this while the other servers get this after they start up, also the servers appear to be fine. This doesnt happen if ASW is removed from plugins folder with multiple servers running at once.
@snipershotmaster Your servers crashed, look for reason in the log, there should be an error. (Not this one). Or look in crash-report forlder.
http://pastebin.com/spqyb4ts this happens when two servers are running on the same system one of them will display this after the other.
@Shevchikden
If broadcast for commands save backup and (assuming) purge is off, it does not warn the user if the command has run at all or successfully. i would like it to warn the user that it has completed successfully but without bothering the players.
@Shevchikden I see. Any chance to have the excludefolder work for the worlds then? Or would that be hard to include as well? Otherwise the fallback would probably be just removing them with some sort of script+cronjob. :)
@Dewinn Yea, it was removed due to it was hard to maintain this check.
Blame Cauldron for using non bukkit world storage system.
I've got some dimensions under ./world/DIM* and the config file is set to backup only "world".
v4.14.2 seemed to properly ignore the dimensions (except for mystcraft dims - format: DIM_MYST*), but Build #861 backups all dimensions anyways. And excludefolders with "- world/DIM*" seems to have no effect on the world backup.
config file KCauldron-Backport-1448-1.7.10-1448.152
@snipershotmaster 00:00
As for console filtering - afaik there was an option to filter console output by regex in spigot, check it.
oo i have an idea, how about a console filter to get rid of some plugins pesky spam? It will also help with useless errors plugins spam from time to time.
@Shevchikden
Ok thanks, but a quick question. If i wish to restart the server ad midnight would i use '00:00' or '24:00' under time for auto restart. I cant tell which one works because im not online the time it restarts and i cant tell if it did.
@snipershotmaster
It means that some file is locked by some other plugin and can't be backuped. Due to zip format can't delete zip entries actually (you need to rebuild it completely) error like this stops backup completely.
Anyway, try latest build it should perform more checks before actually writing file to zip and skips it if something went wrong.
I am assuming this plugin conflicts with multiworld? http://pastebin.com/X89HMvmg It says another process has locked it and the only plugin i have that manages worlds is multiworld. (This is from doing /backup)
@ReeferX7 Yea, interval is reset on restart.
As for the error - check your ftp server, it should print more info.
Hello, @Shevchikden i have a qustion about backup interval timei have set
backup:
enabled: true
interval: 604800 <- week
and now is second week without auto backup. After restart server the time reset? how works?
Also i have on same dedicative 10 servers and when i try to /backup 3+ servers the same time i get this error: http://pastebin.com/NfnFSV0K I use ftp backup.