Copy Repositories with Rsync

In fedora-list, Ashley M Kirchner wrote Oct 6 2007

You can use rsync with any of the mirrors to keep a local copy. I
have a shell script that I run every so often:

~:> cat rsync.sh
echo "Getting Fedora Core 7 Updates...";
echo -e "********************************\n";
rsync --verbose --progress --archive \
--partial --delete --delete-excluded \
--exclude SRPMS/ \
--exclude ppc/ \
--exclude ppc64/ \
--exclude x86_64/ \
--exclude i386/debug/ \
--exclude i386/repodata/ \
rsync://mirrors.kernel.org/fedora/updates/7/ "/home/Fedora 7/Updates/";

This will fetch just the i386 folder from mirrors.kernel.org and
dump it into /home/Fedora7/Updates

-----------

man reposync

About pauljohn

Paul E. Johnson is a Professor of Political Science at the University of Kansas. He is an avid Linux User, an adequate system administrator and C programmer, and humility is one of his greatest strengths.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply