diff --git a/modules/openstack_project/files/mirror/fedora-mirror-update.sh b/modules/openstack_project/files/mirror/fedora-mirror-update.sh index d918dffe8f..e2a68d3a7e 100644 --- a/modules/openstack_project/files/mirror/fedora-mirror-update.sh +++ b/modules/openstack_project/files/mirror/fedora-mirror-update.sh @@ -59,6 +59,21 @@ for REPO in updates/25 updates/26 ; do $MIRROR/fedora/$REPO/ $BASE/$REPO/ done +if ! [ -f $BASE/atomic ]; then + $K5START mkdir -p $BASE/atomic +fi + +echo "Running rsync atomic..." +date --iso-8601=ns +$K5START rsync -rlptDvz \ + --delete \ + --delete-excluded \ + --exclude="testing/" \ + --exclude="Atomic/" \ + --exclude="CloudImages/x86_64/images/*.raw.xz" \ + --exclude="CloudImages/x86_64/images/*.box" \ + $MIRROR/fedora-alt/atomic/ $BASE/atomic/ + # TODO(pabelanger): Validate rsync process date --iso-8601=ns | $K5START tee $BASE/timestamp.txt