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
98d0b651
Commit
98d0b651
authored
Sep 22, 2015
by
Jacob Vosmaer
Browse files
Add 'rake backup:show_secrets' task for exporting
parent
70c161a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/tasks/backup.rake
View file @
98d0b651
...
...
@@ -30,6 +30,30 @@ namespace :backup do
$progress
.
puts
end
desc
"GITLAB | Show database secrets"
task
show_secrets: :environment
do
configure_cron_mode
$progress
.
puts
<<-
EOS
If you are moving to a GitLab installation installed from source, replace the
contents of /home/git/gitlab/config/secrets.yml with the following:
---
production:
db_key_base:
#{
JSON
.
dump
(
GitlabCi
::
Application
.
secrets
.
db_key_base
)
}
If your GitLab server uses Omnibus packages, add the following line to
/etc/gitlab/gitlab.rb:
gitlab_rails['db_key_base'] =
#{
GitlabCi
::
Application
.
secrets
.
db_key_base
.
inspect
}
EOS
end
desc
"GITLAB | Restore a previously created backup"
task
restore: :environment
do
configure_cron_mode
...
...
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