Commit 70c161a4 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Print full path to backup after creating it

parent b713fbec
......@@ -30,6 +30,7 @@ module Backup
upload(tar_file)
end
File.join(GitlabCi.config.backup.path, tar_file)
end
def upload(tar_file)
......
......@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment