Justin Krejci wrote:
> Maybe this is old news?
>
> I have written a quick little script to help prevent a server from syncing 
> its 
> portage tree more than once per 24 hours. Syncing more frequently is more 
> likely to happen on a server with multiple admins, so instead of keeping 
> track of when anyone syncs the tree we now just use this little script. We 
> use esearch instead of calling emerge directly but the script can be adjusted 
> very easily.
>
> If anyone has come up with a better way to do this, I'd love to see it.
Why not setup a local rsync mirror ?

http://www.gentoo.org/doc/en/rsync.xml
http://gentoo-wiki.com/HOWTO_Local_Rsync_Mirror

pros:
- it's easy and guarantees consistence also across different machines
(on my skin, it's simplify the life)
- synced once emerge is smart enough to understand that you're trying to
sync to a mirror with the same timestamp avoiding to sync again.
- save bandwith and resource (also on mirror side, thanks ;)

cons:
- few megabytes wasted for an additional tree
- rsync is a resource eater, the server which run it may have peak of
cpu usage

regards,
Francesco Riosa
-- 
[email protected] mailing list

Reply via email to