chef-web-docs icon indicating copy to clipboard operation
chef-web-docs copied to clipboard

Suggested value for backup['cron']['notation'] in Automate documentation is not valid

Open teknofire opened this issue 7 years ago • 0 comments

See: https://docs.chef.io/delivery_server_backup.html#backup-cron

The documentation for configuring the backup cron includes an invalid cron notation value of backup['cron']['notation'] = "0 0 0/1 1/1 * ? * "

If a user tries to put that in their /etc/delivery/delivery.rb they will get the following error on Ubuntu systems:

May 10 18:58:01 HOSTNAME cron[1071]: Error: bad day-of-month; while reading /etc/cron.d/chef-automate-backup
May 10 18:58:01 HOSTNAME cron[1071]: (*system*chef-automate-backup) ERROR (Syntax error, this crontab file will be ignored)

A better value to show the user is backup['cron']['notation'] = "0 0 * * *" which is the default used in the crontab if it's not set in /etc/delivery/delivery.rb

teknofire avatar May 10 '18 19:05 teknofire