#2070 Update centos-10-sync script to rsync
Merged 7 months ago by kevin. Opened 7 months ago by jrichardson.
fedora-infra/ jrichardson/ansible centos_10_sync  into  main

@@ -1,21 +1,18 @@ 

  #!/bin/sh

  

- #Sync using reposync instead of rsync until available

- SERVER=composes.stream.centos.org

- TOPDIR=stream-10/production/latest-CentOS-Stream/compose

-  

- ## mirror CentOS-10

-  

- DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-10

-  

- mkdir -p ${DESTDIR}

-  

- for basearch in aarch64 ppc64le s390x x86_64

- do

-     for repo in BaseOS AppStream CRB

-     do

-         mkdir -p $DESTDIR/$repo/$basearch

-         cd $DESTDIR/$repo/$basearch

-         reposync --download-metadata --disablerepo=* --repofrompath=os,https://$SERVER/$TOPDIR/$repo/$basearch/os/ --enablerepo=os

-     done

- done 

\ No newline at end of file

+ ## Set up variables we use

+ RSYNC='/usr/bin/rsync'

+ RS_OPT="-avSHP --numeric-ids"

+ RS_DEADLY="--delete --delete-delay --delay-updates"

+ CENT_EXCLUDES="--exclude=isos --exclude=kickstart --exclude=images --exclude=debug"

+ 

+ SERVER=centos-master01.iad2.fedoraproject.org

+ 

+ ## Mirror CentOS-10-Stream

+ 

+ RSYNC_DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-10/

+ RSYNC_MOD="CentOS-Stream-Ref/10-stream/"

+ 

+ mkdir -p ${RSYNC_DESTDIR}

+ 

+ ${RSYNC} ${RS_OPT} ${RS_DEADLY} ${CENT_EXCLUDES} ${SERVER}::${RSYNC_MOD} ${RSYNC_DESTDIR} 

\ No newline at end of file

rebased onto c775045

7 months ago

rebased onto 9170bf5

7 months ago

rebased onto 9170bf5

7 months ago

rebased onto 40c0408

7 months ago

rebased onto 40c0408

7 months ago

Let's keep the same DESTDIR as before, /mnt/fedora/app/fi-repo/centos/centos-10.

I think we can get away with excluding the debug directory as well, since we don't build against those.

The title of this PR is a bit misleading. The overall purpose is to switch from compose content (composes.stream.centos.org) to mirrored content (centos-master01.iad2.fedoraproject.org), matching how we do it for CentOS 9. reposync vs rsync is just an implementation detail.

I think we can get away with excluding the debug directory as well, since we don't build against those.

The title of this PR is a bit misleading. The overall purpose is to switch from compose content (composes.stream.centos.org) to mirrored content (centos-master01.iad2.fedoraproject.org), matching how we do it for CentOS 9. reposync vs rsync is just an implementation detail.

My fault, I should have titled it better

rebased onto 0d30d6b

7 months ago

rebased onto 923ca45

7 months ago

rebased onto 923ca45

7 months ago

rebased onto 626a24d

7 months ago

rebased onto 626a24d

7 months ago

rebased onto bba5d43

7 months ago

rebased onto bba5d43

7 months ago

Pull-Request has been merged by kevin

7 months ago
Metadata