#
🕒 Scheduling Tasks with Cron
Need to restart your server every night? Want to automate backups or broadcast messages to players? The Schedule feature on Expanse Panel lets you automate tasks using cron-like syntax.
#
📍 Where to Find It
- Log in to your Expanse Panel
- Select your server
- Go to the Schedules tab from the top navigation
- Click Create Schedule
#
🧱 Creating a New Scheduled Task
#
Step-by-Step:
- Name your schedule – something like
Daily Restart
- Set your preferred cron time (more below)
- Enable the schedule
- Under Tasks, click New Task
- Choose an action:
Send Command
,Restart Server
, orBackup Server
- For
Send Command
, type your command (e.g.,say Server restarting in 5 minutes!
)
- Choose an action:
- Add more tasks if needed (they’ll run in order)
#
🧠 Cron Time Format
Here’s the format:
minute hour day-of-month month day-of-week
For quick help, check out crontab.guru
#
⚙️ Example: Automatic Daily Restart
- Cron:
0 5 * * *
- Task 1:
say Server restarting in 1 minute!
- Task 2: Delay:
60 seconds
, Action:Restart Server
#
🧯 Common Issues
- 🔒 Task not running? Make sure the schedule is enabled
- ✍️ Command tasks must match in-game syntax (e.g.,
say
,stop
) - 🗃️ For backups, make sure your server has enough allocated storage
- 📄 Always test your cron expression using crontab.guru
Need help setting up your first schedule? Hit us up on Discord and we’ll walk you through it!