# How to Set Up Scheduled Tasks on XGamingServer (/docs/panel-guides/schedules)





import { Step, Steps } from 'fumadocs-ui/components/steps';

Schedules let you automate server tasks — restarts, backups, warning messages — on a recurring cron-based timer.

Create a Schedule [#create-a-schedule]

<Steps>
  <Step>
    Open Schedules [#open-schedules]

    Click **Schedules** in the sidebar.

        <img alt="Schedules page with active schedule" src={__img0} placeholder="blur" />
  </Step>

  <Step>
    Create a new schedule [#create-a-new-schedule]

    Click **Create Schedule**. Enter a name (e.g., "Daily Restart") and set the cron timing:

    | Field            | Range | Description  |
    | ---------------- | ----- | ------------ |
    | **Minute**       | 0–59  | Which minute |
    | **Hour**         | 0–23  | Which hour   |
    | **Day of Month** | 1–31  | Which day    |
    | **Month**        | 1–12  | Which month  |
    | **Day of Week**  | 0–6   | 0 = Sunday   |

    Toggle **Enabled** to activate, then click **Create**.
  </Step>
</Steps>

Common Cron Examples [#common-cron-examples]

| Schedule         | Minute | Hour  | Day | Month | Weekday |
| ---------------- | ------ | ----- | --- | ----- | ------- |
| Every 6 hours    | `0`    | `*/6` | `*` | `*`   | `*`     |
| Daily at 4 AM    | `0`    | `4`   | `*` | `*`   | `*`     |
| Every 30 minutes | `*/30` | `*`   | `*` | `*`   | `*`     |
| Every 5 minutes  | `*/5`  | `*`   | `*` | `*`   | `*`     |

Add Tasks to a Schedule [#add-tasks-to-a-schedule]

Click a schedule to open it, then click **New Task**. Each schedule can have multiple tasks that run in order.

Task Types [#task-types]

| Type                  | Description                              |
| --------------------- | ---------------------------------------- |
| **Send Command**      | Sends a command to the server console    |
| **Send Power Action** | Start, stop, restart, or kill the server |
| **Create Backup**     | Creates a server backup                  |

Time Offsets [#time-offsets]

Each task can have a **time offset** (in seconds) from the previous task — this lets you chain actions.

**Example — Restart with warning:**

1. Task 1: Send command `say Server restarting in 60 seconds!` — offset: 0s
2. Task 2: Send command `say Server restarting in 10 seconds!` — offset: 50s
3. Task 3: Power action **Restart** — offset: 10s

Run a Schedule Manually [#run-a-schedule-manually]

Click **Edit** on any schedule, then **Run Now** to execute it immediately.

Related Guides [#related-guides]

* [Backups](/docs/panel-guides/backups) — manual backup creation
* [Console](/docs/panel-guides/console) — the commands you automate
