Increase verbosity on repo syncronization script

This commit is contained in:
Игорь Чудов 2019-10-14 15:01:45 +04:00
parent cd6c36ab26
commit 940db74f54
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -8,7 +8,13 @@ MIRRORS_SRC="${MIRRORS_SRC:-ftp.altlinux.org}"
MIRRORS_DEST="${MIRRORS_DEST:-/data/mirrors/alt}"
PLATFORM="${PLATFORM:-p8}"
mkdir -p "${MIRRORS_DEST}/${PLATFORM}"
RSYNC_SRC="rsync://${MIRRORS_SRC}/altlinux/${PLATFORM}/branch"
RSYNC_DST="${MIRRORS_DEST}/${PLATFORM}/"
mkdir -p "${RSYNC_DST}"
echo "Rsyncing from: ${RSYNC_SRC}"
echo "Rsyncing to: ${RSYNC_DST}"
/usr/bin/rsync \
--timeout=6000 \
@ -17,6 +23,6 @@ mkdir -p "${MIRRORS_DEST}/${PLATFORM}"
--stats \
--delete-after \
--exclude 'SRPMS*/' \
"rsync://${MIRRORS_SRC}/altlinux/${PLATFORM}/branch" \
"${MIRRORS_DEST}/${PLATFORM}/"
"${RSYNC_SRC}" \
"${RSYNC_DST}/"