I dont know where to post my request so I thought, the best place would be server administration.
I'm looking for a shell script to backup my server. It basically should stop the server, backup the world, the plugins, the sql database and then start it up again.
#15min warning
screen -> say Warnung: Server restartet in 15 Minuten
#5min warning
screen -> say Warnung: Server restartet in 5 Minuten
#1min warning
screen -> say Warnung: Server restartet in 1 Minute
#save-all
screen -> save-all
#stop
screen -> stop
#backup world & zip (keep 7 days)
/path/to/server -> /world1, /world2, /world3, /world4
zip & move to
/path/to/server/backup -> /world1, /world2, /world3, /world4
#backup plugins & zip
/path/to/server/plugins
exclude /dynmap/web/tiles
#backup mysql & add to plugins zip
exclude CoreProtect db
#if every 2nd day then replace spawn world
/path/to/script/replacer.sh
0
I dont know where to post my request so I thought, the best place would be server administration.
I'm looking for a shell script to backup my server. It basically should stop the server, backup the world, the plugins, the sql database and then start it up again.
screen -> say Warnung: Server restartet in 15 Minuten
#5min warning
screen -> say Warnung: Server restartet in 5 Minuten
#1min warning
screen -> say Warnung: Server restartet in 1 Minute
#save-all
screen -> save-all
#stop
screen -> stop
#backup world & zip (keep 7 days)
/path/to/server -> /world1, /world2, /world3, /world4
zip & move to
/path/to/server/backup -> /world1, /world2, /world3, /world4
#backup plugins & zip
/path/to/server/plugins
exclude /dynmap/web/tiles
#backup mysql & add to plugins zip
exclude CoreProtect db
#if every 2nd day then replace spawn world
/path/to/script/replacer.sh
#start
/path/to/server/launch.sh
Toxicterror
0
eg. instead of 128 blocks make it 256 blocks thats far enough!
other idea (that i wont support even myself):
like adding new chunks X/Y direction add chunks to Z direction BUT only downwards...
would result in endless deep mines.