Merge "Cleanup the Fedora 36 mirror content"
This commit is contained in:
commit
d19c26a024
@ -38,63 +38,80 @@ echo_ts "----- START FEDORA MIRROR RSYNC RUN -----"
|
|||||||
|
|
||||||
# Purge old releases
|
# Purge old releases
|
||||||
echo_ts "Purging old mirrors"
|
echo_ts "Purging old mirrors"
|
||||||
$K5START rm -rf $BASE/releases/35 $BASE/updates/35 $BASE/releases/37 $BASE/updates/37 $BASE/development/rawhide
|
$K5START rm -rf $BASE/releases/35 $BASE/updates/35 $BASE/releases/36 $BASE/updates/36 $BASE/releases/37 $BASE/updates/37 $BASE/development/rawhide
|
||||||
|
|
||||||
for REPO in releases/36; do
|
# We set RELEASE_REPOS and UPDATE_REPOS to empty strings to fail
|
||||||
if ! [ -f $BASE/$REPO ]; then
|
# the conditions below skipping any rsyncing. We don't just simply
|
||||||
$K5START mkdir -p $BASE/$REPO
|
# exit 0 here because we do need the vos release at the end to run
|
||||||
fi
|
# and publish the cleanups done by the rm above.
|
||||||
|
#
|
||||||
|
# The code below isn't simply removed to make it easy for people to
|
||||||
|
# resurrect this in the future should conditions change making
|
||||||
|
# fedora test nodes a more viable option again.
|
||||||
|
|
||||||
echo_ts "Running rsync for $REPO..."
|
# A list of release repos to sync eg 'releases/36 releases/37'
|
||||||
$K5START rsync -rltvz \
|
RELEASE_REPOS=''
|
||||||
--delete \
|
if [ -n "$RELEASE_REPOS" ]; then
|
||||||
--delete-excluded \
|
for REPO in "$RELEASE_REPOS"; do
|
||||||
--exclude="iso/" \
|
if ! [ -f $BASE/$REPO ]; then
|
||||||
--exclude="images/" \
|
$K5START mkdir -p $BASE/$REPO
|
||||||
--exclude="isolinux/" \
|
fi
|
||||||
--exclude="Cloud/x86_64/images/*.box" \
|
|
||||||
--exclude="Container" \
|
|
||||||
--exclude="Kinoite" \
|
|
||||||
--exclude="Server" \
|
|
||||||
--exclude="Silverblue" \
|
|
||||||
--exclude="Spins" \
|
|
||||||
--exclude="Workstation" \
|
|
||||||
--exclude="aarch64/" \
|
|
||||||
--exclude="armhfp/" \
|
|
||||||
--exclude="source/" \
|
|
||||||
--exclude="x86_64/debug/" \
|
|
||||||
--exclude="x86_64/drpms/" \
|
|
||||||
--exclude="snapshot/" \
|
|
||||||
--exclude=".~tmp~/" \
|
|
||||||
--exclude=".private/" \
|
|
||||||
--exclude=".nfs*" \
|
|
||||||
$MIRROR/$REPO/ $BASE/$REPO/
|
|
||||||
echo_ts "... done"
|
|
||||||
done
|
|
||||||
|
|
||||||
for REPO in updates/36; do
|
echo_ts "Running rsync for $REPO..."
|
||||||
if ! [ -f $BASE/$REPO ]; then
|
$K5START rsync -rltvz \
|
||||||
$K5START mkdir -p $BASE/$REPO
|
--delete \
|
||||||
fi
|
--delete-excluded \
|
||||||
|
--exclude="iso/" \
|
||||||
|
--exclude="images/" \
|
||||||
|
--exclude="isolinux/" \
|
||||||
|
--exclude="Cloud/x86_64/images/*.box" \
|
||||||
|
--exclude="Container" \
|
||||||
|
--exclude="Kinoite" \
|
||||||
|
--exclude="Server" \
|
||||||
|
--exclude="Silverblue" \
|
||||||
|
--exclude="Spins" \
|
||||||
|
--exclude="Workstation" \
|
||||||
|
--exclude="aarch64/" \
|
||||||
|
--exclude="armhfp/" \
|
||||||
|
--exclude="source/" \
|
||||||
|
--exclude="x86_64/debug/" \
|
||||||
|
--exclude="x86_64/drpms/" \
|
||||||
|
--exclude="snapshot/" \
|
||||||
|
--exclude=".~tmp~/" \
|
||||||
|
--exclude=".private/" \
|
||||||
|
--exclude=".nfs*" \
|
||||||
|
$MIRROR/$REPO/ $BASE/$REPO/
|
||||||
|
echo_ts "... done"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
echo_ts "Running rsync for $REPO..."
|
# A list of update repos to sync eg 'updates/36 updates/37'
|
||||||
$K5START rsync -rltvz \
|
UPDATE_REPOS=''
|
||||||
--delete \
|
if [ -n "$UPDATE_REPOS" ]; then
|
||||||
--delete-excluded \
|
for REPO in "$UPDATE_REPOS"; do
|
||||||
--exclude="aarch64/" \
|
if ! [ -f $BASE/$REPO ]; then
|
||||||
--exclude="armhfp/" \
|
$K5START mkdir -p $BASE/$REPO
|
||||||
--exclude="i386/" \
|
fi
|
||||||
--exclude="source/" \
|
|
||||||
--exclude="SRPMS/" \
|
echo_ts "Running rsync for $REPO..."
|
||||||
--exclude="x86_64/debug" \
|
$K5START rsync -rltvz \
|
||||||
--exclude="x86_64/drpms" \
|
--delete \
|
||||||
--exclude="snapshot/" \
|
--delete-excluded \
|
||||||
--exclude=".~tmp~/" \
|
--exclude="aarch64/" \
|
||||||
--exclude=".private/" \
|
--exclude="armhfp/" \
|
||||||
--exclude=".nfs*" \
|
--exclude="i386/" \
|
||||||
$MIRROR/$REPO/ $BASE/$REPO/
|
--exclude="source/" \
|
||||||
echo_ts "... done"
|
--exclude="SRPMS/" \
|
||||||
done
|
--exclude="x86_64/debug" \
|
||||||
|
--exclude="x86_64/drpms" \
|
||||||
|
--exclude="snapshot/" \
|
||||||
|
--exclude=".~tmp~/" \
|
||||||
|
--exclude=".private/" \
|
||||||
|
--exclude=".nfs*" \
|
||||||
|
$MIRROR/$REPO/ $BASE/$REPO/
|
||||||
|
echo_ts "... done"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO(pabelanger): Validate rsync process
|
# TODO(pabelanger): Validate rsync process
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user