How to Schedule Tasks and Automate Certain Processes.

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

0. Creation of a schedule.

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 and fill in the corresponding fields. 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.

1. Sending Commands

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.

2. Start, Stop and Restart your Server

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.

3. Backup Creation

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.

Última actualización