summaryrefslogtreecommitdiff
path: root/lib/tasks/backup.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/backup.rake')
-rw-r--r--lib/tasks/backup.rake9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake
index 3431bd1..df20c40 100644
--- a/lib/tasks/backup.rake
+++ b/lib/tasks/backup.rake
@@ -5,10 +5,13 @@ namespace :backup do
configure_cron_mode
$progress.puts "Dumping database ... ".blue
-
Backup::Database.new.dump
$progress.puts "done".green
+ $progress.puts "Dumping builds ... ".blue
+ Backup::Builds.new.dump
+ $progress.puts "done".green
+
backup = Backup::Manager.new
backup.pack
backup.cleanup
@@ -26,6 +29,10 @@ namespace :backup do
Backup::Database.new.restore
$progress.puts "done".green
+ $progress.puts "Restoring builds ... ".blue
+ Backup::Builds.new.restore
+ $progress.puts "done".green
+
backup.cleanup
end