[K12OSN] rsyncing repositories

Eric Harrison eharrison at mail.mesd.k12.or.us
Thu Aug 10 01:18:36 UTC 2006


On Wed, 9 Aug 2006, Rob Owens wrote:

> I've been trying to rsync the directory tree for the
> purpose of doing network installs and updating my
> local machines.  This is what I've been running in my
> nightly cron job:
>
> rsync -Pav --exclude=iso
> k12linux.mesd.k12.or.us::testing/5.0.0-32bit/ ./

NOTE: now that 5.0.0 is out of testing, you'll want to 
update your URL. Such as:

   rsync -Pav --exclude=iso k12linux.mesd.k12.or.us::K12LTSP-5.0.0-32bit-all/ .

> This works well for http type network installs.  But I
> don't think I'm fully utilizing my local tree as an
> update source.  The only repo I've successfully
> pointed to my local rsync'd tree is the k12ltsp repo.
>
>
> Can I point any of my other repos to my local rsync'd
> tree?

Put your local mirrors on a FTP or HTTP server, and change your
/etc/yum.repo.d/*.repo files to point to them. For example, you
have mirror K12LTSP-5.0.0-32bit-all to /var/www/html/K12LTSP-5.0.0-32bit/
on the server www.yourdomain.net. You would edit
/etc/yum.repo.d/k12ltsp.repo and change:

 	mirrorlist=http://k12linux.mesd.k12.or.us/mirrors/k12ltsp-5.0-$basearch

to

     baseurl=http://www.yourdomain.net/K12LTSP-5.0.0-32bit/


> Also, the above rsync command doesn't seem to pick up
> any webmin stuff.  Is it possible for me to rsync the
> webmin repository?
>
> Thanks for the help.

I added webmin to K12LTSP's rsync:

 	rsync -Pav k12linux.mesd.k12.or.us::webmin


-Eric




More information about the K12OSN mailing list