summaryrefslogtreecommitdiff
path: root/lib/tasks/backup.rake
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-04 11:54:19 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-04 11:54:19 +0100
commitaaffa89ef9aef6ac30e3304d735a8c58f4bdaaef (patch)
tree995e73e6a7d6f3781bc4e1386c8c27ab10657ea5 /lib/tasks/backup.rake
parent79797464f29913b18a6591cfbc2cac5b86b30777 (diff)
rake backup:now starts a new backup.
Diffstat (limited to 'lib/tasks/backup.rake')
-rw-r--r--lib/tasks/backup.rake6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake
index 55369b6..8f56015 100644
--- a/lib/tasks/backup.rake
+++ b/lib/tasks/backup.rake
@@ -4,6 +4,12 @@ namespace :backup do
# This would be the daily backup.
end
+ desc "Do a backup. Now!"
+ task :now => :environment do
+ backup_job = BackupJob.create
+ 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.