Only sync the files actually needed on the mirrorlist servers

Also enable rsync compression like the old script did.
This commit is contained in:
Adrian Reber 2015-05-07 10:04:36 +00:00
parent 36c3a07a5e
commit 35296c746d

View file

@ -3,6 +3,6 @@
MIRRORLIST_SERVERS="{% for host in groups['mirrorlist2'] %} {{ host }} {% endfor %}"
for s in ${MIRRORLIST_SERVERS}; do
rsync -a --delete-delay --delay-updates --delete /var/lib/mirrormanager/ ${s}:/var/lib/mirrormanager/
rsync -az --delete-delay --delay-updates --delete /var/lib/mirrormanager/{*pkl,*txt} ${s}:/var/lib/mirrormanager/
ssh $s 'kill -HUP $(cat /var/run/mirrormanager/mirrorlist_server.pid)'
done