enupal / backup

Fully integrated Backup solution for Craft CMS
https://enupal.com/craft-plugins/enupal-backup
Other
16 stars 3 forks source link

Cron Example Explanation #16

Closed kmgdevelopment closed 5 years ago

kmgdevelopment commented 5 years ago

Could you explain some pieces of the example Cronjob given in the plugin?

10 3 * * * wget https://www.mysite.com/enupal-backup/schedule?key=12345 -O /dev/null

Specifically what does -O do and what is /dev/null for?

andrelopez commented 5 years ago

Hi @kgrote When using wget to call the webhook URL it creates temporary files, passing -O /dev/null avoid create these temporary files.

Feel free to use curl instead, e.g

10 3 * * * curl --request GET 'https://www.mysite.com/enupal-backup/schedule?key=12345'