Skip to content
Snippets Groups Projects
Unverified Commit b4712817 authored by James Ramsay's avatar James Ramsay
Browse files

Remove rsync instruction from promote-to-primary

The promote-to-primary-node command is used for disaster recovery
using geo to recover quickly. It is possible the primary may never be
recovered, but at the very least it is almost certain that the primary
is not currently accessible.

This command should provide feedback that relates to the process of
making the GitLab instance accessible again. Additional data recovery
tasks, particularly those requiring the old primary to be brought back
online, are secondary and should be documented later in the process.
parent a9d4c99c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -20,8 +20,6 @@ module Geo
reconfigure
 
promote_to_primary
notification_about_rsync
end
 
private
Loading
Loading
@@ -88,14 +86,6 @@ module Geo
run_command('gitlab-rake geo:set_secondary_as_primary')
end
 
def notification_about_rsync
puts
puts '---------------------------------------'.color(:yellow)
puts 'Note: Rsync everything in /var/opt/gitlab/gitlab-rails/uploads and /var/opt/gitlab/gitlab-rails/shared from your old node to the new one !!!'.color(:yellow)
puts '---------------------------------------'.color(:yellow)
puts
end
def run_command(cmd)
GitlabCtl::Util.run_command(cmd)
end
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