Schedule tasks to run on the server
With Crontab, you can specify commands to run on a given schedule. This means you can automatically run updates and send emails, for example.
As with the Windows task scheduler, you choose the time, date and frequency of your automated tasks.
Example use cases:
- Automate updates or run scripts
- Back up your websites and databases
- Access information streams that update your site
- Check the status of folders containing sensitive information, to secure a website
- Send emails containing access logs or links to backups
How to use the job scheduler
Simply go to your Control Panel and use it to schedule all the jobs that need to be run.
You can create or modify the scripts to be run periodically. It really is that simple!
You select the script and the day and time you want them to run.
The advantages of the job scheduler
Automate your website's recurring jobs using our job scheduler, available on all of our packages. Back up your website and databases, generate your invoices, or update your cache at regular intervals. To do this, create the script you want, then configure your job scheduler (Crontab) from the Control Panel.
Track your jobs
You can view whether jobs have been run successfully direct from your Control Panel. If a job was unable to run successfully, you can retrieve the error messages, then modify future jobs accordingly.
<?php system("mysqldump --host=votre_serveur_mysql --user=nom_de_votre_base --password=mot_de_passe nom_de_votre_base > backup.sql"); system("gzip backup.sql"); system("mysqldump --host=votre_serveur_mysql --user=nom_de_votre_base --password=mot_de_passe nom_de_votre_base > backupbase2.sql"); system("gzip backupbase2.sql"); ?>
Example of a script to run in order to save and compress two databases.
You can run a job at a maximum frequency of once per hour.
And in the Control Panel, you can choose to run it every week, or every month, for example.