A init script that apart from starting and stopping the server correctly also has some extra features for running a Cube World server.
- Backup for worlds
- Server complete backup
- Exclude files and directories from full backup by adding them to "exclude.list"
screen, rsync, python
screen -x cuwo
Exit the console
Ctrl+A D
-
Symlink the cuwo file to
/etc/init.d/cuwo
, set the required premissions and update rc.d.sudo ln -s ~/cuwo-init/cuwo /etc/init.d/cuwo chmod 755 ~/cuwo-init/cuwo sudo update-rc.d cuwo defaults
-
Edit the variables in
config.example
to your needs and rename it toconfig
(leaving it in the same folder as the original minecraft script) -
Move your worlds to the folder specified by
WORLDSTORAGE
-
Edit crontab
As the server user:
crontab -e
Add these lines:
#m h dom mon dow command 02 05 * * * /etc/init.d/cuwo backup 55 04 * * * /etc/init.d/cuwo log-roll */30 * * * * /etc/init.d/cuwo to-disk
For more help with the script, run
/etc/init.d/cuwo help