X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fedora-mirror.sh;h=c3d6d70b7d8dfc4dd28973869bc959e7942ce5d6;hb=refs%2Fheads%2Fmaster;hp=e78519f21e10c7dd88b488c8d601b72eb88bf6cb;hpb=031fafbe79b5cd16cacafe2783db9cc822cb675d;p=build.git diff --git a/fedora-mirror.sh b/fedora-mirror.sh index e78519f2..03ebb093 100755 --- a/fedora-mirror.sh +++ b/fedora-mirror.sh @@ -7,17 +7,21 @@ DATE=$(date '+%Y-%m-%d-%H-%M') LOG=${LOGDIR}/${DATE}.log dry_run= -verbose=--verbose +verbose=-i log= skip_core=true root=/mirror/ us_fedora_url=rsync://mirrors.kernel.org/fedora -eu_fedora_url=rsync://mirror1.hs-esslingen.de/fedora/linux -default_distroname="f29" -all_distronames="f27 f29" +# used to be this one +# eu_fedora_url=rsync://mirror1.hs-esslingen.de/fedora/linux +# browse content at https://mirror.in2p3.fr/pub/fedora/linux/releases/ +eu_fedora_url=rsync://mirror.in2p3.fr/pub/fedora/linux + +default_distroname="f43" +all_distronames="f41 f43" global_arch="x86_64" @@ -46,7 +50,8 @@ function mirror_distro_arch () { [ -n "$(rsync --help | grep no-motd)" ] && options="$options --no-motd" options="$options $dry_run $verbose" options="$options -aH --numeric-ids" - options="$options --delete --delete-excluded --delete-after --delay-updates" + options="$options --delete --delete-excluded" + options="$options --partial" for e in $excludelist; do options="$options --exclude $e" done @@ -61,6 +66,7 @@ function mirror_distro_arch () { localpath=fedora else paths="$paths updates/$distroindex/Everything/$arch/ updates/$distroindex/Modular/$arch/" + localpath=fedora fi for repopath in $paths; do @@ -68,7 +74,7 @@ function mirror_distro_arch () { [ -z "$dry_run" ] && mkdir -p ${root}/${localpath}/${repopath} command="rsync $options ${rsyncurl}/${repopath} ${root}/${localpath}/${repopath}" echo $command - $command + $command done echo "<<<<<<<<<<<<<<<<<<<< $distroname $arch"