2020-06-10 19:50:28 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-12-02 17:50:50 -05:00
|
|
|
## Set up variables we use
|
2020-06-10 19:50:28 -04:00
|
|
|
RSYNC='/usr/bin/rsync'
|
|
|
|
RS_OPT="-avSHP --numeric-ids"
|
|
|
|
#RS_DEADLY="--delete --delete-excluded --delete-delay --delay-updates"
|
|
|
|
RS_DEADLY="--delete --delete-delay --delay-updates"
|
|
|
|
CENT_EXCLUDES="--exclude=isos --exclude=kickstart --exclude=s390x"
|
|
|
|
|
|
|
|
SERVER=centos-master01.iad2.fedoraproject.org
|
|
|
|
|
2020-12-02 17:50:50 -05:00
|
|
|
## Mirror regular CentOS-8
|
|
|
|
|
|
|
|
RSYNC_DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-8/
|
|
|
|
RSYNC_MOD="CentOS-community-cage/centos/8/"
|
|
|
|
|
|
|
|
mkdir -p ${RSYNC_DESTDIR}
|
|
|
|
|
|
|
|
|
|
|
|
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${CENT_EXCLUDES} ${SERVER}::${RSYNC_MOD} ${RSYNC_DESTDIR}
|
|
|
|
|
|
|
|
## Now mirror CentOS-8 Stream
|
|
|
|
|
|
|
|
RSYNC_DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-8-stream/
|
|
|
|
RSYNC_MOD="CentOS-community-cage/centos/8-stream/"
|
|
|
|
|
|
|
|
mkdir -p ${RSYNC_DESTDIR}
|
|
|
|
|
|
|
|
|
2020-06-10 19:50:28 -04:00
|
|
|
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${CENT_EXCLUDES} ${SERVER}::${RSYNC_MOD} ${RSYNC_DESTDIR}
|
|
|
|
|