Schedules
Schedules run a list of tasks at times you choose. They are good for nightly backups and regular restarts.
Create a schedule
Section titled “Create a schedule”- Open Schedules and press Create schedule.
- Name it and set when it runs using the cron fields: minute, hour, day of month, month, and day of week. The server’s time zone is shown on the page. confirm time zone
- Leave Enabled on.
- Save, then add tasks.
A schedule runs its tasks in order. Task types:
- Send command: types a command into the console.
- Send power action: start, stop, restart, or kill.
- Create backup: makes a backup, with optional ignored files.
Each task can wait a number of seconds before it runs. Use that to give the game time to finish. For example: send a save command, wait 10 seconds, then create the backup.
Example: nightly restart with backup
Section titled “Example: nightly restart with backup”- Send command: a save command for your game
- Wait 15 seconds, then send power action: Stop
- Wait 30 seconds, then create backup
- Wait 60 seconds, then send power action: Start
Run it at an hour when few people are online.
Check the result
Section titled “Check the result”The schedule page shows when it last ran and when it runs next. If a task did not do what you expected, run the schedule by hand from the page and watch the console.
