Set up Schedules
Schedules are a powerful tool that allows you to automatically run actions on your server. This could be a backup, restart, or a command.
There are a couple of things to understand before setting a time for a schedule to run.
The hours are set on a 24-hour clock, ranging from 0 to 23, the scheduled times are set to and run on the UTC timezone, and the last run time for a schedule is shown in your local time. So make sure to take into account the difference between time zones when setting the time.
For example, if you want to set a schedule to run at 6am and you live in the PST timezone. You will need to add 8 hours to the time you wish to set, so the hour you need is 13.
A useful tool for timezone conversions are sites such as timezone360 (opens in a new tab). Where you can select different timezones to look at and scan across a line to see the time between timezones.
Setting the time
To set the time the schedules should run, we can specify the times in the input boxes. In each of the boxes, you will need to specify when you want the schedule to run. The times are specified using the cron timing format. Each part, such as minutes or hours, has a separate input box.
The character *
can be used to specify every unit of time in the specified input box.
The character ,
can be used to list multiple times for the schedule to run. For example, if you want the schedule to run on the 6th and 12th hours of the day, you can set the hours input box to 6,12
.
The character /
can be used to specify every other unit of time to run the schedule. The unit set on the right side of /
is where the steps start, and the left side is the size of the steps. For example, to run a schedule every 30 minutes between the 0-59 minutes of the hour, you can use 0/30
, or you can just set */30
to run every 30th minutes dependent on the hour the schedule will run.
The character -
can be used to specify a range of units to run the schedule at. For example, if you want to have a schedule run every day of the month between the 7th and 12th day, you can set the days of the month input box to 7-12
.
For a full example, say we want to run a schedule every 5 minutes at 6am on every Tuesday every 2 months, we will want to set the schedule to the following:
Minute: */5
| Hour: 6
| Day of Month: *
| Month: */2
| Day of Week: 2
If you are having trouble understanding the syntax of the cron time format. Crontab.guru (opens in a new tab) is a useful site that can be used to get a plain English version of the cron setting. For example, setting the input box to */5 6 * */2 2
will give the output of "At every 5th minute past hour 6 on Tuesday in every 2nd month."
Setting Actions
Now you've set the time, we now need to set the actions. Once you've made the schedule, press on it, and you'll be taken to the task page.
Pressing on the New Task
button will allow you to set a task for your schedule.
Once the box is open you can select the type of schedules. Commands are game commands, so for Minecraft, if you wanted to say something in the server, you could put the say
command. Making sure not to use a / for Minecraft.
Power actions are restart, start, stop, and kill (force stop).
Backups allows you to make backups using the backup manager. If you have reached your backup limit, the oldest backup will be rotated unless the backup is locked.