Commit ff7bafdb authored by John Jarvis's avatar John Jarvis Committed by Ahmad Sherif

Update the pages sync procedure to use the staging pages server.

parent d3fe20fc
......@@ -169,27 +169,22 @@ an hour before the scheduled maintenance window.
* `sudo crontab -e` to get an editor window, comment out the line involving rsync
1. [ ] 🔪 {+ Chef-Runner +}: Start parallelized, incremental GitLab Pages sync
* Expected to take ~30 minutes, run in screen/tmux! On the **Azure** pages NFS server!
* Updates to pages after now will be lost.
* Updates to pages after the transfer starts will be lost.
* The user running the rsync _must_ have full sudo access on both azure and gcp pages.
* Very manual, looks a little like the following at present:
* Before you run the commands below, ensure that the ssh key used to ssh to the pages VMs are in your ssh-agent:
```
ssh-add -l # to list keys
ssh-add path/to/ssh/key # if you do not have the key loaded
```
* Staging:
```
ssh -A 10.124.2.8 # nfs5.staging.gitlab.com
ssh 10.133.2.161 # nfs-pages-staging-01.stor.gitlab.com
tmux
sudo ls -1 /var/opt/gitlab/gitlab-rails/shared/pages | xargs -I {} -P 15 -n 1 sudo SSH_AUTH_SOCK=$SSH_AUTH_SOCK rsync -avh -e "ssh -oCompression=no" --rsync-path="sudo rsync" /var/opt/gitlab/gitlab-rails/shared/pages/{} $USER@pages.stor.gstg.gitlab.net:/var/opt/gitlab/gitlab-rails/shared/pages
sudo ls -1 /var/opt/gitlab/gitlab-rails/shared/pages | xargs -I {} -P 25 -n 1 sudo rsync -avh -e "ssh -i /root/.ssh/stg_pages_sync -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Compression=no" /var/opt/gitlab/gitlab-rails/shared/pages/{} git@pages.stor.gstg.gitlab.net:/var/opt/gitlab/gitlab-rails/shared/pages
```
* Production:
```
ssh -A 10.70.2.161 # nfs-pages-01.stor.gitlab.com
ssh 10.70.2.161 # nfs-pages-01.stor.gitlab.com
tmux
sudo ls -1 /var/opt/gitlab/gitlab-rails/shared/pages | xargs -I {} -P 15 -n 1 sudo SSH_AUTH_SOCK=$SSH_AUTH_SOCK rsync -avh -e "ssh -oCompression=no" --rsync-path="sudo rsync" /var/opt/gitlab/gitlab-rails/shared/pages/{} $USER@pages.stor.gprd.gitlab.net:/var/opt/gitlab/gitlab-rails/shared/pages
sudo ls -1 /var/opt/gitlab/gitlab-rails/shared/pages | xargs -I {} -P 25 -n 1 sudo rsync -avh -e "ssh -i /root/.ssh/pages_sync -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Compression=no" /var/opt/gitlab/gitlab-rails/shared/pages/{} git@pages.stor.gprd.gitlab.net:/var/opt/gitlab/gitlab-rails/shared/pages
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment