Sha256: 6967e90dceaf152c8bf34904faa1d1f1f88370c632f802d38a9e68afc8c09ffa

Contents?: true

Size: 987 Bytes

Versions: 10

Compression:

Stored size: 987 Bytes

Contents

# Use this file to easily define all of your cron jobs.
#
# It's helpful, but not entirely necessary to understand cron before proceeding.
# http://en.wikipedia.org/wiki/Cron

#
app_env = ENV['app_env'] || ENV['RAILS_ENV']

root = File.absolute_path(File.dirname(__FILE__))
app_dir = File.expand_path("../../", __FILE__)+'/'


every 4.hours do
  command "app_env=#{app_env} backup perform -t db_backup --root-path #{app_dir}backup"
end

every 4.hours do
  command "app_env=#{app_env} backup perform -t app_files_backup --root-path #{app_dir}backup"
end

every 1.day, :at => '5:30 am' do
  command "app_env=#{app_env} backup perform -t user_files_backup --root-path #{app_dir}backup"
end




#
# set :output, "/path/to/my/cron_log.log"
#
# every 2.hours do
#   command "/usr/bin/some_great_command"
#   runner "MyModel.some_method"
#   rake "some:great:rake:task"
# end
#
# every 4.days do
#   runner "AnotherModel.prune_old_records"
# end

# Learn more: http://github.com/javan/whenever

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
optimacms_backups-0.0.14 spec/dummy/config/schedule.rb
optimacms_backups-0.0.13 spec/dummy/config/schedule.rb
optimacms_backups-0.0.12 spec/dummy/config/schedule.rb
optimacms_backups-0.0.7 spec/dummy/config/schedule.rb
optimacms_backups-0.0.6 spec/dummy/config/schedule.rb
optimacms_backups-0.0.5 spec/dummy/config/schedule.rb
optimacms_backups-0.0.4 spec/dummy/config/schedule.rb
optimacms_backups-0.0.3 spec/dummy/config/schedule.rb
optimacms_backups-0.0.2 spec/dummy/config/schedule.rb
optimacms_backups-0.0.1 spec/dummy/config/schedule.rb