1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Use Crontab on Cloud Server
- Script files called by the cron must be executable (CHMOD)
Cron tasks are not aware of the absolute path (path). Calling PHP without specifying the full paths to the executable makes task execution impossible.
You must specify /opt/phpX.X/bin/php replacing X.X with the desired PHP version (/opt/php7.1/bin/php for example).
- List the crons for the SSH user in question: crontab -l -u SSHUserName
- Edit the crons: crontab -e -u SSHUserName
- Be notified by email of the result of your cron tasks (to be added at the beginning of the file): MAILTOemail@example.com
Restore a Backup
Infomaniak backs up crons for the last 7 days (once a day). In case of accidental deletion, contact our support to request a restoration, specifying the time and date of the deletion.