Nils Holland wrote:
On 21:35 Mon 31 Jan     , Francesco Talamona wrote:
On Monday 31 January 2011, BRM wrote:
I just wrote a new script last night, but I'm still not sure that all
of the  parameters are correct
Why not something proven and reliable like "emerge --sync"?
In fact, what I always do is sync one of my machines with an official
Gentoo mirror via "emerge --sync", and then I just use rsync to
distribute the updated tree to all my other local machines as in:

rsync --delete -trmv /usr/portage/<user>@<dest_host>:/usr/portage

One might want to ask rsync to exclude the distfiles directory,
but I always include it as it oftentimes saves me the download of a
file I've already downloaded during an emerge on another machine.

In any case, locally updating my tree via rsync has always worked fine
for me. Leaving the "--delete" option to rsync out, however,
immediately leads to problems, with various ebuild-related error
messages on subsequent "emerge"s. I can imagine that the OP did, in
fact, update his tree in such an inconsistent manner, but that can
certainly be fixed, with the surest way being a "emerge --sync" using
an official mirror.

Greetings,
Nils

Maybe I am missing something but I have two machines here. I sync to the Gentoo servers with the main rig and then sync the second rig from the main rig. All you have to do is start the rsync service and set the IP address in the SYNC line in make.conf on the second rig. This is my rsyncd.conf on the main rig:

# Simple example for enabling your own local rsync server
[gentoo-portage]
path = /usr/portage
comment = Gentoo Portage tree
exclude = /distfiles /packages

If you want to include distfiles, just remove it from the exclude line. For my distfiles, I run http-replicator to fetch those. It works pretty well.

Dale

:-)  :-)

Reply via email to