Merge "Stop updating and delete OpenEuler mirror content"
This commit is contained in:
@@ -33,47 +33,12 @@ BASE="/afs/.openstack.org/mirror/openeuler"
|
||||
K5START="k5start -t -f /etc/openeuler.keytab service/openeuler-mirror -- $TIMEOUT"
|
||||
|
||||
# Cleanup old repos
|
||||
for REPO in openEuler-22.03-LTS ; do
|
||||
for REPO in openEuler-24.03-LTS ; do
|
||||
if [ -d $BASE/$REPO/ ]; then
|
||||
$K5START rm -rf $BASE/$REPO/
|
||||
fi
|
||||
done
|
||||
|
||||
# Using a foreign mirror to rsync quickly.
|
||||
# For a whole mirror list see https://www.openeuler.org/en/mirror/list/.
|
||||
# 119.8.63.103 is the openEuler official mirror in HongKong
|
||||
MIRROR="rsync://119.8.63.103:873/openeuler"
|
||||
REPOS="openEuler-24.03-LTS"
|
||||
|
||||
for REPO in $REPOS; do
|
||||
if ! [ -f $BASE/$REPO ]; then
|
||||
$K5START mkdir -p $BASE/$REPO
|
||||
fi
|
||||
|
||||
date --iso-8601=ns
|
||||
echo_ts "Running $REPO rsync..."
|
||||
$K5START rsync -rltvz \
|
||||
--delete \
|
||||
--delete-excluded \
|
||||
--exclude="ISO/" \
|
||||
--exclude="images/" \
|
||||
--exclude="isolinux/" \
|
||||
--exclude="debuginfo/" \
|
||||
--exclude="docker_img/" \
|
||||
--exclude="edge_img/" \
|
||||
--exclude="embedded_img/" \
|
||||
--exclude="loongarch64/" \
|
||||
--exclude="ppc64le/" \
|
||||
--exclude="raspi_img" \
|
||||
--exclude="riscv64/" \
|
||||
--exclude="source/" \
|
||||
--exclude="stratovirt_img/" \
|
||||
--exclude="virtual_machine_img/" \
|
||||
--exclude="WSL/" \
|
||||
$MIRROR/$REPO/ $BASE/$REPO/
|
||||
echo_ts "$REPO rsync done."
|
||||
done
|
||||
|
||||
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
|
||||
echo_ts "rsync completed successfully, running vos release."
|
||||
vos_release $MIRROR_VOLUME
|
||||
|
||||
Reference in New Issue
Block a user