How to Schedule Tasks and Automate Certain Processes.
Última actualización
Última actualización
In our Control Panel, you will be able to automate the following tasks:
1. Sending commands.
2. Turning on, turning off, and restarting the server.
3. Backup creation
Before scheduling the tasks themselves, you will need to create a schedule. A schedule is the container for the programmable tasks and is also responsible for executing them.
To create one, go to your server in our panel and navigate to the section called Schedules, which you'll find on the left-hand side.
Once inside, create a schedule by clicking the Create schedule button.
Two modes are available: Simple and Advanced. The process is somewhat different in each of them. You can switch between modes using the button above.
In the Name field you must write the name it will have.
Then you can select how often the tasks you are going to schedule should be executed. There are a number of predefined options but you can also choose the exact minute of execution by selecting Manual selection. The operation is the same for the hours, day of the month, month and day of the week.
In the Schedule name field, enter the name it will have.
The minute, hour, day of month, month, and day of week fields are used to specify when or how often the schedule should execute the tasks.
It can be challenging to use this format, so we recommend using a generator, such as, for example this one.
Returning to the panel, in the schedule creation, there are now only 2 options left:
Execute only when the server is online
Schedule Enabled
Enable or disable them as you prefer.
Let's get started with the tasks themselves. To create a task, enter the schedule by clicking on it. You will see a blue button in the top right corner that says NEW TASK. Click on it to begin the process of creating a new task.
By default, the Send command option will be selected, which is the one we'll be working with in this first section.
Starting with the Time offset, it represents the time that needs to elapse since the previous execution for this task to run. You should write the time in seconds.
In the Payload field, you should write the command exactly as you would type it into the console. For example, if you want to set a player to creative mode in Minecraft, you would write gamemode creative in the console. So, you would write that in the Payload section.
Finally, you can enable Continue on failure to allow the task to continue executing even if it fails.
Now, let's move on to the second option: Power actions.
Here, you will see the Time offset and Continue on failure fields again. What changes in this option is the dropdown menu for the power action you want to execute. You can choose to turn on the server, turn it off, or restart it. You will also see an option for Terminate server, but we do not recommend creating a task with that power action, as it will delete your server.
Lastly, you have the option to create a task that generates backups automatically. It's important to consider that this automation will create backups until you reach the maximum number of backups allowed in your contracted plan. Once you reach the maximum limit, in order to create a new backup, the oldest one will be deleted.
In this section, you will also see the Time offset and Continue on failure fields. Here, you have the Ignored files field, where you can write the names of the files you don't want to include in the backup.