Automating restarts and backups with schedules
Set up automatic daily restarts, scheduled backups, and timed commands using the Schedules tab and a bit of cron syntax.
Schedules let your server do things on its own — restart every night, take a backup while you sleep, or run a command at a set time. This guide gets you from zero to a working automatic restart.
Create a schedule
- Open your server and click the Schedules tab.
- Click Create Schedule.
- Give it a name (for example Nightly restart).
- Set when it runs using the cron fields — minute, hour, day-of-month, month, day-of-week. See the cheat sheet below.
- Save the schedule, then add one or more tasks to it.
Add tasks
A schedule is a container; the tasks are what actually happen when it fires. Open your schedule and click Create Task. Task types include:
- Send power action —
restart,stop, orstart. - Create backup — takes a backup automatically.
- Send command — runs a console command (for example
say Restarting in 60sorsave-all).
You can chain tasks with a delay between them — for example, send a warning command, wait 60 seconds, then restart.
Example: nightly restart at 4 AM with a warning
- Create a schedule set to
0 4 * * *(every day at 04:00). - Task 1 — Send command:
say Server restarting in 60 seconds. - Task 2 — Send command (with a 60-second delay):
save-all. - Task 3 — Send power action:
restart.
A daily restart clears memory leaks and keeps a busy server snappy.
Cron cheat sheet
The five fields are minute hour day-of-month month day-of-week.
| Expression | Runs |
|---|---|
0 4 * * * |
Every day at 4:00 AM |
0 */6 * * * |
Every 6 hours |
30 3 * * 1 |
3:30 AM every Monday |
*/15 * * * * |
Every 15 minutes |
0 0 1 * * |
Midnight on the 1st of each month |
* means "every". Times use the server's timezone shown on the schedule form.
Tips
- Pair a restart with a backup on separate schedules — restart daily, back up nightly.
- Warn players first. A
saycommand a minute before a restart avoids surprise disconnects. - Test it once by hitting Run Now on the schedule instead of waiting for the clock.