15 3 * * * /usr/bin/certbot renew --quiet --deploy-hook 'systemctl reload nginx'

Category: VPS Management

15 3 * * * /usr/bin/certbot renew --quiet --deploy-hook 'systemctl reload nginx'

Schedule nightly certbot renewal via cron

A crontab line: at 03:15 daily, run certbot renew quietly and reload nginx only when a renewal actually happens (the --quiet and --deploy-hook pattern from the Certbot docs). The five fields are minute, hour, day-of-month, month, day-of-week. Note that the packaged certbot.timer already does this on Ubuntu — add this only if you manage cron yourself.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.