mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Right now we are doing 3 rsyncs one at a time, but this prevents us from deleting content that has disappeared from one of the first ones. So, switch to doing one rsync with multiple sources and let it sort out files that are now gone to be deleted in the target. Fixes ticket 7334.
10 lines
549 B
Bash
Executable File
10 lines
549 B
Bash
Executable File
#!/bin/sh
|
|
|
|
/usr/bin/rsync -aSHPv --delete --exclude=.git/objects/ sundries01::docs/ /srv/web/docs.fedoraproject.org/
|
|
/usr/bin/rsync -aSHPv --delete --exclude=.git/objects/ sundries01::docs-redirects/ /srv/web/docs-redirects/
|
|
|
|
# build the combined docs tree.
|
|
# See https://pagure.io/fedora-infrastructure/issue/7130
|
|
|
|
rsync -aH --delete /srv/web/docs.fedoraproject.org/ /srv/web/docs-redirects/ /srv/web/docs-old.fedoraproject.org/public_html/ /srv/web/docs-combined/
|