diff options
author | Cindy Pallares <cindy@gitlab.com> | 2019-05-07 14:46:39 -0500 |
---|---|---|
committer | Cindy Pallares <cindy@gitlab.com> | 2019-05-08 12:39:04 -0500 |
commit | deb5276f8bdc54ee4e6fe3f5aa02ca18c7482e77 (patch) | |
tree | d84d5a310240c85ce81271dd41297a3b94c1fade /lib | |
parent | 12e12d9672a628e87968148879fdaa16d3fa436f (diff) | |
download | gitlab-ce-deb5276f8bdc54ee4e6fe3f5aa02ca18c7482e77.tar.gz |
Add warning that gitlab-secrets isn't includedadd-warning-to-backup-rake-task
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/backup.rake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake index 3977fc7ad8c..c531eb1d216 100644 --- a/lib/tasks/gitlab/backup.rake +++ b/lib/tasks/gitlab/backup.rake @@ -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 @@ -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 |