Skip to content
Snippets Groups Projects
Unverified Commit deb5276f authored by Cindy Pallares's avatar Cindy Pallares
Browse files

Add warning that gitlab-secrets isn't included

Many customers forget to include the gitlab-secrets.json file. This adds
a warning that both gitlab-secrets.json and gitlab.rb are not included
in the backup.
parent 12e12d96
No related branches found
No related tags found
No related merge requests found
---
title: Add warning that gitlab-secrets isn't included in backup
merge_request:
author:
type: other
Loading
Loading
@@ -20,6 +20,11 @@ namespace :gitlab do
backup.pack
backup.cleanup
backup.remove_old
puts "Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data \n" \
"and are not included in this backup. You will need these files to restore a backup.\n" \
"Please back them up manually.".color(:red)
puts "Backup task is done."
end
 
# Restore backup of GitLab system
Loading
Loading
@@ -68,6 +73,9 @@ namespace :gitlab do
Rake::Task['cache:clear'].invoke
 
backup.cleanup
puts "Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data \n" \
"and are not included in this backup. You will need to restore these files manually.".color(:red)
puts "Restore task is done."
end
 
namespace :repo do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment