Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-qa-sandbox-group
qa-test-2019-05-06-03-38-42-40f225278db2df81
add-member-project-38ac0d05ff9a6e41
Commits
70c161a4
Commit
70c161a4
authored
Sep 22, 2015
by
Jacob Vosmaer
Browse files
Print full path to backup after creating it
parent
b713fbec
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/backup/manager.rb
View file @
70c161a4
...
...
@@ -30,6 +30,7 @@ module Backup
upload
(
tar_file
)
end
File
.
join
(
GitlabCi
.
config
.
backup
.
path
,
tar_file
)
end
def
upload
(
tar_file
)
...
...
lib/tasks/backup.rake
View file @
70c161a4
...
...
@@ -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\n
Your final CI export is in the following file:
\n\n
"
$progress
.
puts
tar_file
$progress
.
puts
end
desc
"GITLAB | Restore a previously created backup"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment