Re: Using rsync to maintain local FC10 updates repo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 16, 2009 at 14:57:31 -0500,
  Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
> I want to use rsync to maintain a local FC10 updates repo.  I do  this  
> with Centos.
>
> So I wanted to do a simple rsync against one of the mirrors, and tried  
> the script:
>
> #!/bin/sh
> rsync -auv  
> rsync://mirrors.usc.edu/pub/linux/distributions/fedora/linux/updates/10/i386/ 
> \
> --delete --exclude=debug/ /repos/fedora/10/updates/i386

Below is what I use to pull x86_64 and i386 repos for Fedora 10 and rawhide
plus rpm fusion. If you have both i386 and x86_64 machines you want to pull
stuff for both at one as the x86_64 repo's include some of the i386 stuff and
you don't need to grab it twice. If you don't want x86_64 stuff remove all of
the options that refer to it in path names. The same goes for rawhide (remove
options that refer to development in path names).
Check the mirror list to see if other mirrors are more suitable for you.

#!/bin/sh

RELEASE=10
BASEDIR=/home/f${RELEASE}
FEDORA=rsync://mirror.hiwaay.net/fedora-linux/
FUSION=rsync://fr2.rpmfind.net/linux/rpmfusion/

echo -e "\nSyncing local Fedora ${RELEASE} mirrors ...\n"
rsync -rltHvz --delete-after --include=/releases --include=/updates --exclude=/'*' --include=/releases/${RELEASE} --exclude=/releases/'*' --include=/releases/${RELEASE}/Everything --include=/releases/${RELEASE}/Fedora --exclude=/releases/${RELEASE}/'*' --include=/releases/${RELEASE}/Everything/i386/ --include=/releases/${RELEASE}/Everything/x86_64/ --exclude=/releases/${RELEASE}/Everything/'*' --include=/releases/${RELEASE}/Everything/i386/os/ --include=/releases/${RELEASE}/Everything/x86_64/os/ --exclude=/releases/${RELEASE}/Everything/i386/'*' --exclude=/releases/${RELEASE}/Everything/x86_64/'*' --include=/releases/${RELEASE}/Fedora/i386 --exclude=/releases/${RELEASE}/Fedora/'*' --include=/releases/${RELEASE}/Fedora/i386/iso --exclude=/releases/${RELEASE}/Fedora/i386/'*' --include=/releases/${RELEASE}/Fedora/i386/iso/'*'-netinst.iso --exclude=/releases/${RELEASE}/Fedora/i386/iso/'*' --include=/updates/${RELEASE} --include=/updates/testing --exclude=/updates/'*' --include=/u
 pdates/${RELEASE}/i386 --include=/updates/${RELEASE}/x86_64 --exclude=/updates/${RELEASE}/'*' --exclude=/updates/${RELEASE}/'*'/debug --include=/updates/testing/${RELEASE} --exclude=/updates/testing/'*' --include=/updates/testing/${RELEASE}/i386 --include=/updates/testing/${RELEASE}/x86_64 --exclude=/updates/testing/${RELEASE}/'*' --exclude=/updates/testing/${RELEASE}/'*'/debug ${FEDORA} ${BASEDIR}

echo -e "\nSyncing local RPM Fusion Fedora ${RELEASE} mirrors ...\n"
rsync -rltHvz --delete-after --include=/'*'free --exclude=/'*' --include=/'*'free/fedora --exclude=/'*'free/'*' --include=/'*'free/fedora/releases --include=/'*'free/fedora/updates --exclude=/'*'free/fedora/'*' --include=/'*'free/fedora/releases/${RELEASE} --exclude=/'*'free/fedora/releases/'*' --include=/'*'free/fedora/releases/${RELEASE}/Everything --include=/'*'free/fedora/releases/${RELEASE}/Fedora --exclude=/'*'free/fedora/releases/${RELEASE}/'*' --include=/'*'free/fedora/releases/${RELEASE}/Everything/i386/ --include=/'*'free/fedora/releases/${RELEASE}/Everything/x86_64/ --exclude=/'*'free/fedora/releases/${RELEASE}/Everything/'*' --include=/'*'free/fedora/releases/${RELEASE}/Everything/i386/os/ --include=/'*'free/fedora/releases/${RELEASE}/Everything/x86_64/os/ --exclude=/'*'free/fedora/releases/${RELEASE}/Everything/i386/'*' --exclude=/'*'free/fedora/releases/${RELEASE}/Everything/x86_64/'*' --include=/'*'free/fedora/releases/${RELEASE}/Fedora/i386 --exclude=/'*'free/
 fedora/releases/${RELEASE}/Fedora/'*' --exclude=/'*'free/fedora/releases/${RELEASE}/Fedora/i386/'*' --include=/'*'free/fedora/updates/${RELEASE} --include=/'*'free/fedora/updates/testing --exclude=/'*'free/fedora/updates/'*' --include=/'*'free/fedora/updates/${RELEASE}/i386 --include=/'*'free/fedora/updates/${RELEASE}/x86_64 --exclude=/'*'free/fedora/updates/${RELEASE}/'*' --exclude=/'*'free/fedora/updates/${RELEASE}/'*'/debug --include=/'*'free/fedora/updates/testing/${RELEASE} --exclude=/'*'free/fedora/updates/testing/'*' --include=/'*'free/fedora/updates/testing/${RELEASE}/i386 --include=/'*'free/fedora/updates/testing/${RELEASE}/x86_64 --exclude=/'*'free/fedora/updates/testing/${RELEASE}/'*' --exclude=/'*'free/fedora/updates/testing/${RELEASE}/'*'/debug ${FUSION} ${BASEDIR}

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux