diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-09-22 10:46:32 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-09-22 10:46:32 +0200 |
commit | 70c161a429de1575071441352b6b44740ad38b96 (patch) | |
tree | 99be7832486f0d5d71c47386c8dbf5d4caa72bc6 | |
parent | b713fbeca10d22daea826b50b04e0e165d2e22f1 (diff) | |
download | gitlab-ci-70c161a429de1575071441352b6b44740ad38b96.tar.gz |
Print full path to backup after creating it
-rw-r--r-- | lib/backup/manager.rb | 1 | ||||
-rw-r--r-- | lib/tasks/backup.rake | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index 8ad3ea6..3f1c3e4 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -30,6 +30,7 @@ module Backup upload(tar_file) end + File.join(GitlabCi.config.backup.path, tar_file) end def upload(tar_file) diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake index 9b039e8..facd659 100644 --- a/lib/tasks/backup.rake +++ b/lib/tasks/backup.rake @@ -18,12 +18,16 @@ namespace :backup do $progress.puts "done".green backup = Backup::Manager.new - backup.pack + tar_file = backup.pack backup.cleanup backup.remove_old # Relax backup directory permissions to make the migration easier File.chmod(0755, GitlabCi.config.backup.path) + + $progress.puts "\n\nYour final CI export is in the following file:\n\n" + $progress.puts tar_file + $progress.puts end desc "GITLAB | Restore a previously created backup" |