2012-05-22 14:25:34 +00:00
|
|
|
#
|
|
|
|
# Minecraft Server Manager Cron
|
|
|
|
#
|
|
|
|
# Backs up worlds, rolls logs, moves worlds in RAM to disk,
|
|
|
|
# and starts crashed servers
|
|
|
|
#
|
|
|
|
# For more information visit the project home page:
|
|
|
|
# https://github.com/marcuswhybrow/minecraft-init
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Backs up all worlds for all servers at 2 minutes past 5 in the moring
|
2012-05-29 06:01:22 +00:00
|
|
|
02 05 * * * minecraft /etc/init.d/mcm all worlds backup
|
2012-05-22 14:25:34 +00:00
|
|
|
|
|
|
|
# Rolls the logs for all servers at 55 minutes past 4 in the morning
|
2012-05-29 06:01:22 +00:00
|
|
|
55 04 * * * minecraft /etc/init.d/mcm all logroll
|
2012-05-22 14:25:34 +00:00
|
|
|
|
|
|
|
# Moves all "in RAM" worlds to disk every half hour for all servers
|
2012-05-29 06:01:22 +00:00
|
|
|
*/30 * * * * minecraft /etc/init.d/mcm all worlds todisk
|
2012-05-22 14:25:34 +00:00
|
|
|
|
|
|
|
# Start any crashed servers again each hour
|
|
|
|
@hourly minecraft /etc/init.d/mcm start
|