Skip to content

Instantly share code, notes, and snippets.

@dedico
Created June 17, 2011 19:12
Show Gist options
  • Save dedico/1032075 to your computer and use it in GitHub Desktop.
Save dedico/1032075 to your computer and use it in GitHub Desktop.
whenever task v2
env :PATH, '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/ruby/lib/ruby/gems/1.9.1:/usr/local/ruby/bin'
env :SHELL, '/bin/bash'
env :MAILTO, 'your@email.com'
every 1.day, :at => '01:15 am' do
command "backup perform -t test_backup -c /path/to/backup/config.rb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment