How do I schedule restarts and wipes?
Create a schedule, notify players and sequence tasks in the correct order. The scheduler runs tasks according to a cron expression.
The scheduler runs tasks according to a cron expression. For clean maintenance, warn the players, save, then restart.
Step-by-step procedure
-
Create the schedule
Open Schedules, click “New schedule”, choose the time, then leave the “Task enabled” switch on.
-
Add a warning
Send a command or message several minutes before shutdown.
-
Save or stop
Add the save command suited to the game, then a stop or restart action.
-
Test manually
Use the schedule’s “Run” button at a time when no players are connected to check the order of the tasks.
Daily cron example at 04:00
0 4 * * *
Other common cron expressions
0 */6 * * * # every 6 hours
30 5 * * 1 # every Monday at 05:30
0 4 1 * * # 1st of the month at 04:00
Before you start
Scheduled tasks are reserved for paid plans: on a free server, the page shows a padlock and the “Upgrade plan” button. Each task uses one of these three actions:
A task’s “Delay (in seconds)” counts from the previous task and cannot exceed 900 seconds. To warn players 30 minutes ahead, spread the messages over several tasks.
- “Send a command”: the command is passed to the server console, exactly as you would type it yourself.
- “Power action”: “Start the server”, “Restart the server”, “Stop the server” or “Force stop”.
- “Create a backup”: refused if the plan includes no backups. When the limit is reached, the oldest unlocked backup is deleted to make room.
Example of a daily restart
Create the schedule with the expression 0 4 * * *, then add these tasks in order with “Add task”:
These are Minecraft commands: on Rust, save with server.save. If the game accepts no commands, keep only the power action.
- Task 1, delay 0: “Send a command” with say followed by your message, for example “Restarting in 10 minutes”.
- Task 2, delay 540: a second message, “Restarting in 1 minute”.
- Task 3, delay 50: saving the world, save-all on Minecraft.
- Task 4, delay 10: “Power action”, then “Restart the server”.
Checking the schedule
The cron follows the panel’s time zone, which is not necessarily yours. After saving, compare “Next run”, shown in your browser’s time, with the time you want. After a test with “Run”, “Last run” must update and the console must show your messages followed by the restart.
Frequently asked questions
Why did my schedule not run while the server was stopped?
The “Only when the server is online” switch is on by default: the schedule is skipped while the server is offline or stopping. Turn it off for a schedule meant to start the server.
Why do the following tasks not run after an error?
When a task fails, for example a command sent to a stopped server, the following tasks are dropped. Turn on “Continue on error” for that task: a “Continue on error” badge then appears next to it in the list.
What should I do about the message “Cannot create a backup task when the limit is 0.”?
Your plan includes no backups. Switch to a plan that does, or use the game’s own save command, which writes the world to disk without creating an archive.