Skip to content

Game Server: Scheduled Tasks (Cron)

Automate restarts, backups, commands, and Rust wipes with schedules—recurring with Cron or one-time

30 November 20264 min read218 Views0 helpful

Introduction

Create schedules that run automatically at defined times. This lets you automate various processes on your server. You can choose whether a schedule should run regularly or just once at a specific time.

Task types

Schedules let you run different types of tasks. The following task types are currently supported:

  • Restart
  • Start
  • Stop
  • Backup (with ZapX Pass Pro and above)
  • Run command
  • Wipe (only for Rust)

The predefined types let you automate a wide range of server management tasks. In particular, Run command lets you create many more specific and customized tasks, such as sending messages to your players. The guide “Automated server messages” for your game explains how—for example, for Rust. Run command is only available for games whose console accepts commands. Regardless, we automatically back up your game server every day. With ZapX Pass Pro, you can also create your own backup schedules. Learn more in Backups.

Warning: Minimum interval

There must be at least 5 minutes between two runs of a schedule. The form will reject shorter intervals and show a message.

Create a schedule

Go to the Schedules tab for your game server. To create a new schedule, click New Schedule. The Create schedule window will open, where you can configure your task.

Configure a schedule

When configuring a schedule, you specify which task should run and when. This example shows how to create a schedule to restart the server regularly.

  1. Enter a Name, for example, Restart every 3 hours. This field is required.
  2. Under Action, select Restart.
  3. Under Schedule (Cron), select a preset, such as Every 6 hours, or choose Custom. For Custom, enter the interval in the Cron expression field. To restart every three hours, use 0 */3 * * *.
  4. Check the Time zone. It is initially set to your own time zone. The Cron expression is evaluated in the selected time zone, and daylight saving time is handled automatically.
  5. Under Next runs, you can see when the schedule will run next.
  6. Click Create.

If you select Run command under Action, also enter the console command that ZapX should run at the scheduled time in the Command field.

Tip: Cron generator

Not familiar with Cron structure or syntax? A Cron expression consists of the minute, hour, day, month, and day-of-week fields. The form includes a link to our Cron Builder. Alternatively, you can use Crontab Guru, a simple tool for creating and copying Cron expressions in just a few clicks.

Run a schedule only once

If a task should run only once—for example, a restart after a planned update or a one-time announcement—enable Run only once:

  1. In the Create schedule window, turn on Run only once.
  2. Under Run on, select a date and time, then check the Time zone.
  3. Click Create.

The schedule will run exactly once at the selected time and then be disabled automatically. The time must be in the future and no more than one year away. The schedule will then be marked as Executed in the list. To use it again, select a new time using Edit.

Schedule a wipe (Rust)

For a Rust game server, you can use the Wipe action to automatically reset the map, blueprints, or everything:

  1. Under Action, select Wipe.
  2. Select the Wipe type: Map wipe, Blueprint wipe, or Full wipe. For a map or full wipe, you can enable Use a new random seed for each wipe and enter a New world size (optional).
  3. Leave Create a safety backup before each wipe (recommended) enabled. Without a backup, deleted data cannot be restored.
  4. Under Schedule (Cron), select a time. No preset is selected by default when you switch to Wipe. In addition to the usual presets, there are:
    • Forced wipe (first Thursday of the month, 19:00): automatically sets the Time zone to Europe/London.
    • Every Thursday at 19:00
  5. Click Create.

If the server is busy with another process at the scheduled time, the wipe will be skipped. You can see the reason in the schedule list. Our guide Rust: Server Wipe explains what each wipe type does. For instructions on combining a backup, announcement, and wipe into one process, see Schedule a season reset.

Info

If your server has been shared with you, ZapX only offers actions that you have permission to use. You need the “Wipe” permission to create wipe schedules.

Manage schedules

The list in the Schedules tab shows the Name, Action, Schedule, Next run, and Actions columns for each schedule. If the last run failed, the reason appears directly below the schedule. Under Actions, you can:

  • pause and reactivate a schedule using the toggle,
  • edit it using Edit (pencil icon),
  • remove it using Delete (trash icon).

Delete a schedule

To delete an existing schedule, click the red trash icon (Delete) next to it on the right side of the list, then confirm the Delete schedule? prompt by clicking Delete. The schedule will be permanently deleted. To pause it temporarily instead, use the toggle.

Conclusion

You now know how to create, manage, and delete schedules. If you have any other questions or need help, our support team is here for you every day! 🙂

FAQ

Frequently asked questions

Restart, start, stop, backup (with ZapX Pass Pro and above), and run command; Rust also supports wipes. Run command is only available for games whose console accepts commands.
Open the Schedules tab for your game server and click New schedule. Enter a name, choose an action, select a preset or enter a custom Cron expression, choose a time zone, and click Create.
Yes. Enable Run only once and select a date, time, and time zone. The schedule will run exactly once and then be disabled automatically.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.