mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
18 lines
545 B
Bash
18 lines
545 B
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=""
|
|
|
|
${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
|