summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2015-07-08 14:12:34 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2015-07-08 14:12:34 +0000
commit00b6536f4d155ec41b8a8434d992b6b207f07bb5 (patch)
tree118927afe00dc27abe67420862d0035bced7f2c9 /lib/tasks
parent52cc9a572484a87cea542448e6d439b7c6032e04 (diff)
parentb34f96ec2a4a0d09d35f562aa18eb91071d95b2f (diff)
downloadgitlab-ci-00b6536f4d155ec41b8a8434d992b6b207f07bb5.tar.gz
Merge branch 'trace_in_file' into 'master'
Build trace in file https://dev.gitlab.org/gitlab/gitlab-ci/issues/272 See merge request !167
Diffstat (limited to 'lib/tasks')
-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