We had centos stream and altarches and centos linux under /srv/pub on external download servers. However, this breaks people who sync buffet or the like from them because they suddenly get centos content that they want to just get directly elsewhere. So, just move these up a leave so they are out of the buffet target and people who want them can get them elsewhere. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
28 lines
1 KiB
Bash
28 lines
1 KiB
Bash
#!/bin/bash
|
|
|
|
##
|
|
## This script is used to sync data from main download servers to
|
|
## secondary server at ibiblio.
|
|
##
|
|
|
|
RSYNC='/usr/bin/rsync'
|
|
RS_OPT="-avSHP --numeric-ids --log-file=/var/log/rsync-update.log"
|
|
RS_DEADLY="--delete --delete-excluded --delete-delay --delay-updates"
|
|
EPL_EXCLUDES=""
|
|
FED_EXCLUDES=""
|
|
|
|
# CentOS
|
|
${RSYNC} ${RS_OPT} ${RS_DEADLY} download-cc-rdu01.fedoraproject.org::centos/ /srv/centos/ | tail -n2 | logger -p local0.notice -t rsync_centos
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "Unable to finish sync to CentOS"
|
|
fi
|
|
# CentOS-altarch
|
|
${RSYNC} ${RS_OPT} ${RS_DEADLY} download-cc-rdu01.fedoraproject.org::centos-altarch/ /srv/centos-altarch/ | tail -n2 | logger -p local0.notice -t rsync_centos_alt
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "Unable to finish sync to CentOS-altarch"
|
|
fi
|
|
|
|
${RSYNC} ${RS_OPT} ${RS_DEADLY} rsync.stream.centos.org::CentOS-Stream-All/ /srv/centos-stream/ | tail -n2 | logger -p local0.notice -t rsync_centos_stream
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "Unable to finish sync to CentOS-stream"
|
|
fi
|