diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-04 07:47:50 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-04 07:47:50 -0500 |
commit | 06ee958ddc3066cab0893bfa9174db7a76e8c250 (patch) | |
tree | 951c9211171dcc80de41b95ae68d0cc5816989b7 /lib/tasks | |
parent | 14facb5c1f50ae9edd0ac842001ab8e7afa52b21 (diff) | |
parent | 6e388bedb33a07373675625a90a859bc8cf2c688 (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/backup.rake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake index 55369b6..51fd2f2 100644 --- a/lib/tasks/backup.rake +++ b/lib/tasks/backup.rake @@ -4,6 +4,18 @@ namespace :backup do # This would be the daily backup. end + desc "Do a backup." + task :queue_a_new_backup => :environment do + backup_job = BackupJob.create + echo "BackupJob ID: #{backup_job.id}" + end + + desc "Do a backup. Now!" + task :force_now => :environment do + backup_job = BackupJob.create(:state => 'force now') + echo "BackupJob ID: #{backup_job.id}" + end + desc "Restore the system" task :restore => :environment do # This task takes the first RestoreJob to restore the system. |