How to schedule automatic restarts and backups
Schedules → Create schedule → set the time → Manage schedule → New Task. Use Send power action to restart, Create backup for backups, Send command for warnings and Discord webhook for alerts.
- Difficulty:
- Intermediate
- Time:
- 10 minutes
On this page
The Schedules tab runs tasks for you at set times: restart the server, make a backup, send a console command, post to Discord or delete files. You create a schedule (the time) and then add one or more tasks (what to do).
Auto restart every day
Open your server at panel.endercloud.in, go to the Schedules tab and click Create schedule.
Schedule name:
Auto Restart.Set the time. In Easy mode pick from the dropdowns, for example Minute = Once, Hour = Every Day at Midnight, and check the Preview line ("At 12:00 AM"). Or switch to Advanced, turn on Show Cheatsheet, and type the cron values: daily at midnight =
0 0 * * *.Leave Only When Server Is Online and Schedule Enabled on, and click Create schedule.
Click Manage schedule next to it, then New Task.
Action = Send power action, Time offset =
0, Payload = Restart the server. Click Create Task.
Done. The server now restarts automatically at that time. The schedule page shows Next run at so you can check it.
Check the time. Look at Next run at after saving. If it is not the time you expected in IST, change the hour until it matches.
Add warning messages before the restart
Players like a warning. Add tasks in this order on the same schedule (New Task each time). The Time offset is how many seconds to wait after the previous task.
# | Action | Payload | Time offset |
|---|---|---|---|
1 | Send command |
| 0 |
2 | Send command |
| 240 |
3 | Send command |
| 50 |
4 | Send power action | Restart the server | 10 |
The restart happens about five minutes after the first message. Set the schedule time five minutes earlier (for example 55 23 * * *) if the restart itself should be at midnight. Don't type a / before commands. The time offset of the first task is ignored.
Auto backup every day
Go to Schedules → Create schedule. Name it
Daily Backup.Pick a quiet time, for example Advanced →
0 4 * * *(04:00 every day). Click Create schedule.Click Manage schedule → New Task.
Action = Create backup, Time offset =
0. Ignored Files is optional (leave it empty to use the server's.pteroignore, or list big folders to skip). Click Create Task.
When you have reached your backup limit, the oldest backup is rotated (deleted) to make room for the new one. Lock a backup in the Backups tab to keep it safe from this. On plans with one backup slot, each scheduled backup replaces the last one, so download important copies yourself. Slots per plan: How to create and restore backups.
Keep backups and restarts in separate schedules, for example backup at 04:00 and restart at 05:00, so a big backup has time to finish.
Other task actions
Discord webhook: posts a message to a Discord channel. Enter the Webhook URL (Discord: channel settings → Integrations → Webhooks) and the Message, for example "Server restarting now". Add it as the first task of your restart schedule to tell your community.
Delete files: deletes files or folders on a timer. Enter one path per line, relative to the server's main folder, for example
logs. Double-check the paths: deleted files can't be recovered.Send power action payloads: Start the server, Restart the server, Stop the server or Terminate the server (force stop, no saving; avoid it).
Continue on Failure: turn it on if later tasks should still run when this one fails.
Edit, test or delete a schedule
On the schedule's page, Edit changes the name, time and switches, New Task adds tasks, and the red trash button deletes the schedule with all its tasks. The Schedules list shows Name, Last run at and Status (Active or Inactive).
Frequently asked questions
My schedule did nothing
Check that it is Active, that it has at least one task, and the Next run at time. Only When Server Is Online is on by default, so nothing runs while the server is offline. Turn it off if you want a schedule to start a stopped server.
It ran at the wrong time
Compare Next run at with your clock and change the Hour by the difference.
The scheduled backup failed
If every backup slot holds a locked backup, there is nothing to rotate. Unlock or delete one in Backups.
Was this article helpful?
Related articles
USA (Virginia) VPS are managed inside the billing panel from the Servers page, with Overview, Network, Access, Snapshots, Activity and Settings tabs. ARM plans can't run x86-only software.
Use FileZilla or WinSCP with protocol SFTP, port 2022, the username from SFTP Details and your Game Panel password.
Stop the server, compress the world folder in Files and download the zip. You can also download a backup or copy the folder with SFTP.
Endercloud staff don't read or change your files, and every service has DDoS protection. You keep your account safe with 2FA, sub-users and your own backups.
