A scheduled task, also commonly referred to as a cronjob, is a task the server will perform regularly, by command in a pre-defined period. Let’s give an example with creating a cronjob to generate backups on a Linux server.
- Log in your Plesk control panel.
- Navigate to the horizontal menu at the top.
- Click on ‘Server’.
- Under the ‘Tools & Resources’ section, click on ‘Scheduled tasks’.
- Click ‘Schedule New Task’.
- If you would like the backup to be executed every day at one minute after midnight enter:
- 1 for minutes
- 0 for hour
- * for the day.
- * for the month
- * for the day of the week
- The following command will create a backup and send it to your email: /usr/local/psa/admin/sbin/backupmng