Switch to letting rsync filter our overlaps in docs combined site.

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.
This commit is contained in:
Kevin Fenzi 2018-11-08 00:47:37 +00:00
parent d62dd190f1
commit bff1f4d622

View file

@ -6,6 +6,4 @@
# build the combined docs tree.
# See https://pagure.io/fedora-infrastructure/issue/7130
/usr/bin/rsync -aH /srv/web/docs-old.fedoraproject.org/public_html/ /srv/web/docs-combined/
/usr/bin/rsync -aH /srv/web/docs-redirects/ /srv/web/docs-combined/
/usr/bin/rsync -aH /srv/web/docs.fedoraproject.org/ /srv/web/docs-combined/
rsync -aH --delete /srv/web/docs.fedoraproject.org/ /srv/web/docs-redirects/ /srv/web/docs-old.fedoraproject.org/public_html/ /srv/web/docs-combined/