> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensionhost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to create a schedule

> In this guide you will learn how to create a schedule with steps on how to create a schedule that will auto restart the server every 12 hours.

<Steps>
  <Step title="Navigate to the &#x22; Schedules &#x22; tab.">
    <img src="https://mintcdn.com/tensionhosting/ixT9GlFrEkeyOXjj/images/schedule.png?fit=max&auto=format&n=ixT9GlFrEkeyOXjj&q=85&s=c880957279844b808305b2a9a1ebda5a" alt="Schedule Tab Pn" width="1883" height="893" data-path="images/schedule.png" />
  </Step>

  <Step title="Click &#x22; Create Schedule &#x22;">
    <img src="https://mintcdn.com/tensionhosting/ixT9GlFrEkeyOXjj/images/schedul3.png?fit=max&auto=format&n=ixT9GlFrEkeyOXjj&q=85&s=c222dcb1089c20206b5e47dfb933669a" alt="Schedule Tab2 Pn" width="1885" height="883" data-path="images/schedul3.png" />
  </Step>

  <Step title="Enter a name for your schedule and configure" icon="wrench">
    <Frame>
      <img src="https://mintcdn.com/tensionhosting/ixT9GlFrEkeyOXjj/images/schedule22.png?fit=max&auto=format&n=ixT9GlFrEkeyOXjj&q=85&s=954d25720503afbc843352b689d5c0ae" alt="Schedule22" width="1031" height="732" data-path="images/schedule22.png" />
    </Frame>

    We have made it very easy, to change when the schedule runs just press the time you want in the dropdown, for example every day at midnight!
  </Step>

  <Step title="Configure">
    <Frame>
      <img src="https://mintcdn.com/tensionhosting/ixT9GlFrEkeyOXjj/images/schedule222.png?fit=max&auto=format&n=ixT9GlFrEkeyOXjj&q=85&s=1f547e29b968c635a6a6f50b92411423" alt="Schedule222" width="962" height="585" data-path="images/schedule222.png" />
    </Frame>
  </Step>
</Steps>

This is where you need to tell the schedule what time you want it to run and configure if you want it to run when the server is online/offline, etc.

The setting the time part can seem quite overwhelming but we have created a table of usefull times that you can use:

| \*/5 \* \* \* \* | Every 5 Mins |
| ---------------- | ------------ |
| 0 \*/1 \* \* \*  | Every Hour   |
| 0 0 \* \* MON    | Every Monday |

<img src="https://mintcdn.com/tensionhosting/rqEjHtsivhLZKSkc/images/schedules-examples.png?fit=max&auto=format&n=rqEjHtsivhLZKSkc&q=85&s=7e913e7303e5edcc4a7a166f73c7154b" alt="Schedules Examples Pn" width="858" height="337" data-path="images/schedules-examples.png" />

You can configure this to your liking by changing the values and by using [this website](https://crontab.cronhub.io/) to generate the perfect cron job time for you.<br /><br />Dont worry, we have a preview that tells you what you entered so you know you done it right!

## Creating an Auto Restart

<Steps>
  <Step title="Press on &#x22; New Task &#x22;">
    Now that you have created your schedule, you can press the new task button, that will bring up the new task menu

    <img src="https://mintcdn.com/tensionhosting/ixT9GlFrEkeyOXjj/images/schedule22.png?fit=max&auto=format&n=ixT9GlFrEkeyOXjj&q=85&s=954d25720503afbc843352b689d5c0ae" alt="Schedule 3 Pn" width="1031" height="732" data-path="images/schedule22.png" />
  </Step>

  <Step title="Enter a name for your schedule">
    <img src="https://mintcdn.com/tensionhosting/ixT9GlFrEkeyOXjj/images/entername.png?fit=max&auto=format&n=ixT9GlFrEkeyOXjj&q=85&s=a7d2e406fa26bbe008831ff3dbb52a14" alt="Schedule 4 Pn" width="984" height="727" data-path="images/entername.png" />
  </Step>

  <Step title="Select your required power action">
    <img src="https://mintcdn.com/tensionhosting/ixT9GlFrEkeyOXjj/images/schedule222.png?fit=max&auto=format&n=ixT9GlFrEkeyOXjj&q=85&s=1f547e29b968c635a6a6f50b92411423" alt="Schedule 5 Pn" width="962" height="585" data-path="images/schedule222.png" />
  </Step>
</Steps>

After you have selected your required power action, for example " Restart the server ". <br />At the time you set before the server will now Restart.

**We know this can be confusing, so we are here to help:**

If you need any more support, join our [Discord](https://discord.tensionhost.com) or open a [ticket](https://billing.tensionhost.com/tickets/create)
