1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Using Cortab on Cloud Server
This guide details the use of Crontab (crons via SSH), available only on Cloud Server, by default (there is also a task planner for all accommodation).
Prerequisites
- The script files called by the cron must be executable (CHMOD).
Full path
Cron tasks are not aware of the absolute path (path). Calling PHP without specifying the complete paths to the executable makes it impossible to perform the task.
You have to specify
/opt/phpX.X/bin/php
replacing X.X
by the desired PHP version (/opt/php7.1/bin/php
e.g.).
Other operations
List the crons of the SSH user in question:
crontab -l -u NomUtilisateurSSH
Edit the crons:
crontab -e -u NomUtilisateurSSH
Be notified by email of the result of your cron tasks (to be added at the beginning of the file):
MAILTO=e-mail@domain.xyz
Restore Backup
Infomaniak saves the crons of the last 7 days (once a day). In the event of accidental suppression, contact Infomaniak support to request a restoration by specifying the time and date of erasure.