This is the last piece of the dev-ops puzzle. We want our MongoDB backup to run nightly. Let’s create a :cron task
We are going ot use whenever to avoid the ugly syntax of cron. Whenever is configured in config/schedule.rb.
To propagate the settings to crontab, use the following command.
$ whenever --update-crontab
All credit for this one goes to @sarcilav – I wanted to wrap up our dev-ops story in one place on my blog.