Only sync the files actually needed on the mirrorlist servers
Also enable rsync compression like the old script did.
This commit is contained in:
parent
36c3a07a5e
commit
35296c746d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue