1 |
Nils Holland wrote: |
2 |
> On 21:35 Mon 31 Jan , Francesco Talamona wrote: |
3 |
> |
4 |
>> On Monday 31 January 2011, BRM wrote: |
5 |
>> |
6 |
>>> I just wrote a new script last night, but I'm still not sure that all |
7 |
>>> of the parameters are correct |
8 |
>>> |
9 |
>> Why not something proven and reliable like "emerge --sync"? |
10 |
>> |
11 |
> In fact, what I always do is sync one of my machines with an official |
12 |
> Gentoo mirror via "emerge --sync", and then I just use rsync to |
13 |
> distribute the updated tree to all my other local machines as in: |
14 |
> |
15 |
> rsync --delete -trmv /usr/portage/<user>@<dest_host>:/usr/portage |
16 |
> |
17 |
> One might want to ask rsync to exclude the distfiles directory, |
18 |
> but I always include it as it oftentimes saves me the download of a |
19 |
> file I've already downloaded during an emerge on another machine. |
20 |
> |
21 |
> In any case, locally updating my tree via rsync has always worked fine |
22 |
> for me. Leaving the "--delete" option to rsync out, however, |
23 |
> immediately leads to problems, with various ebuild-related error |
24 |
> messages on subsequent "emerge"s. I can imagine that the OP did, in |
25 |
> fact, update his tree in such an inconsistent manner, but that can |
26 |
> certainly be fixed, with the surest way being a "emerge --sync" using |
27 |
> an official mirror. |
28 |
> |
29 |
> Greetings, |
30 |
> Nils |
31 |
> |
32 |
|
33 |
Maybe I am missing something but I have two machines here. I sync to |
34 |
the Gentoo servers with the main rig and then sync the second rig from |
35 |
the main rig. All you have to do is start the rsync service and set the |
36 |
IP address in the SYNC line in make.conf on the second rig. This is my |
37 |
rsyncd.conf on the main rig: |
38 |
|
39 |
# Simple example for enabling your own local rsync server |
40 |
[gentoo-portage] |
41 |
path = /usr/portage |
42 |
comment = Gentoo Portage tree |
43 |
exclude = /distfiles /packages |
44 |
|
45 |
If you want to include distfiles, just remove it from the exclude line. |
46 |
For my distfiles, I run http-replicator to fetch those. It works pretty |
47 |
well. |
48 |
|
49 |
Dale |
50 |
|
51 |
:-) :-) |