Re: Local mirroring of the CentOS repos

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



Kai Schaetzl wrote:
*But* I then realized that the updates directory contains *all* updates, not just the latest. Which means if I don't regularly check I may get old versions mirrored I don't want. It also means that I get a lot of unwanted files at the time I start to mirror. And I cannot delete old files as these would again be mirrored in. An obvious solution would be to check each day and tell wget (or whatever software I use) to ignore files older than 24 hours. Still, this means the initial download has to get them all and I have to delete all unwanted old files manually.
Is there a better solution?
Use rsync. I keep a local copy of the updates, specific to my platform. I'm also very specific in WHAT I want locally as you'll see in the following script. I use the Stanford University's mirror.

:~> cat rsync.sh
echo "Getting Centos 5.0 Updates...";
echo -e "*****************************\n";
rsync --progress --archive \
--partial --delete --delete-excluded \
--exclude centosplus/ \
--exclude fasttrack/ \
--exclude isos/ \
--exclude isos-dvd/ \
--exclude os/ \
--exclude updates/SRPMS/ \
--exclude updates/x86_64/ \
--exclude addons/SRPMS/ \
--exclude addons/x86_64/ \
--exclude extras/SRPMS/ \
--exclude extras/x86_64/ \
mirror.stanford.edu::mirrors/centos/5.0 /home/CentOS/;


--
W | It's not a bug - it's an undocumented feature.
 +--------------------------------------------------------------------
 Ashley M. Kirchner <mailto:ashley@xxxxxxxxxx>   .   303.442.6410 x130
 IT Director / SysAdmin / Websmith             .     800.441.3873 x130
 Photo Craft Imaging                       .     3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux