---
title: "How to schedule automatic restarts and backups"
url: https://help.endercloud.in/docs/how-to-schedule-automatic-restarts-and-backups
category: "Game Panel"
type: Guide
tags: ["backups", "panel", "schedules"]
keywords: "auto restart, automatic restart, daily restart, scheduled backup, auto backup, cron, cheatsheet, new task, time offset, restart warning, say command, discord webhook, delete logs, schedule not running, next run at, schedule restart, auto restart server, schedules tab, schedule backup, scheduled tasks, cron job, restart every day, automatic backups, schedule kaise banaye"
difficulty: intermediate
time: "10 minutes"
updated: 2026-11-14
source: Endercloud Knowledge Base (official)
---

# 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.

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

1.  Open your server at [panel.endercloud.in](https://panel.endercloud.in), go to the **Schedules** tab and click **Create schedule**.
    
2.  **Schedule name**: `Auto Restart`.
    
3.  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 * * *`.
    
4.  Leave **Only When Server Is Online** and **Schedule Enabled** on, and click **Create schedule**.
    
5.  Click **Manage schedule** next to it, then **New Task**.
    
6.  **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.

> **Warning:**
> **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 | `say Server restarts in 5 minutes!` | 0 |
| 2 | Send command | `say Server restarts in 1 minute!` | 240 |
| 3 | Send command | `save-all` | 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

1.  Go to **Schedules** → **Create schedule**. Name it `Daily Backup`.
    
2.  Pick a quiet time, for example Advanced → `0 4 * * *` (04:00 every day). Click **Create schedule**.
    
3.  Click **Manage schedule** → **New Task**.
    
4.  **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](/docs/how-to-create-and-restore-backups).

> **Tip:**
> 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

**Q: 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.

**Q: It ran at the wrong time**

Compare **Next run at** with your clock and change the Hour by the difference.

**Q: The scheduled backup failed**

If every backup slot holds a locked backup, there is nothing to rotate. Unlock or delete one in **Backups**.
