public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] synchronize portage files in a LAN
@ 2009-11-23  3:32 Crístian Viana
  2009-11-23  4:24 ` Richard Marza
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Crístian Viana @ 2009-11-23  3:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

hi,

I have 7 computers in local network and I want them to have always the same
portage files (the ones synchronized with rsync). of course I can use
crontab to make them sync at a specific time but I'm wondering if there's a
better alternative. I saw a wiki page which says to create one local rsync
server and have the other 6 computers synchronize with it (by pointing the
SYNC variable to the local rsync server). but I also thought NFS could be
nice: I just have to sync one machine and everyone will always be
"synchronized".

what's the best approach for this case?

thanks!

-- 
Crístian Deives dos Santos Viana [aka CD1]

[-- Attachment #2: Type: text/html, Size: 758 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] synchronize portage files in a LAN
  2009-11-23  3:32 [gentoo-user] synchronize portage files in a LAN Crístian Viana
@ 2009-11-23  4:24 ` Richard Marza
  2009-11-23  5:04 ` Dale
  2009-11-23 17:46 ` Florian Philipp
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Marza @ 2009-11-23  4:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

From: Crístian Viana 
  To: gentoo-user@lists.gentoo.org 
  Sent: Sunday, November 22, 2009 10:32 PM
  Subject: [gentoo-user] synchronize portage files in a LAN


  hi,


  I have 7 computers in local network and I want them to have always the same portage files (the ones synchronized with rsync). of course I can use crontab to make them sync at a specific time but I'm wondering if there's a better alternative. I saw a wiki page which says to create one local rsync server and have the other 6 computers synchronize with it (by pointing the SYNC variable to the local rsync server). but I also thought NFS could be nice: I just have to sync one machine and everyone will always be "synchronized".


  what's the best approach for this case?


  thanks!

  -- 
  Crístian Deives dos Santos Viana [aka CD1]



------------------------------------------------------------------------------





  The options you mentioned is the best...Just settup the rsync server on the machine you want it on and then setup a cront job to update it daily. Set your 6 hosts to use your local rsync server machine and create cron jobs for the 6 machines. Just make sure that their cron jobs are 5-10 minutes ahead of when the local rsync server updates it's files.

[-- Attachment #2: Type: text/html, Size: 2361 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] synchronize portage files in a LAN
  2009-11-23  3:32 [gentoo-user] synchronize portage files in a LAN Crístian Viana
  2009-11-23  4:24 ` Richard Marza
@ 2009-11-23  5:04 ` Dale
  2009-11-23 17:46 ` Florian Philipp
  2 siblings, 0 replies; 4+ messages in thread
From: Dale @ 2009-11-23  5:04 UTC (permalink / raw
  To: gentoo-user

Crístian Viana wrote:
> hi,
>
> I have 7 computers in local network and I want them to have always the 
> same portage files (the ones synchronized with rsync). of course I can 
> use crontab to make them sync at a specific time but I'm wondering if 
> there's a better alternative. I saw a wiki page which says to create 
> one local rsync server and have the other 6 computers synchronize with 
> it (by pointing the SYNC variable to the local rsync server). but I 
> also thought NFS could be nice: I just have to sync one machine and 
> everyone will always be "synchronized".
>
> what's the best approach for this case?
>
> thanks!
>
> -- 
> Crístian Deives dos Santos Viana [aka CD1]

I think either way would work.  The bad thing about a NFS is that you 
have to run emerge --metadata to update the files in /var.  I think this 
is still correct.  I always synced to my main machine.  It is easier in 
my opinion.  I seem to recall having to uncomment one line in the config 
file and start rsyncd.  It worked.

My thoughts at least.

Dale

:-)  :-) 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] synchronize portage files in a LAN
  2009-11-23  3:32 [gentoo-user] synchronize portage files in a LAN Crístian Viana
  2009-11-23  4:24 ` Richard Marza
  2009-11-23  5:04 ` Dale
@ 2009-11-23 17:46 ` Florian Philipp
  2 siblings, 0 replies; 4+ messages in thread
From: Florian Philipp @ 2009-11-23 17:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]

Crístian Viana schrieb:
> hi,
> 
> I have 7 computers in local network and I want them to have always the
> same portage files (the ones synchronized with rsync). of course I can
> use crontab to make them sync at a specific time but I'm wondering if
> there's a better alternative. I saw a wiki page which says to create one
> local rsync server and have the other 6 computers synchronize with it
> (by pointing the SYNC variable to the local rsync server). but I also
> thought NFS could be nice: I just have to sync one machine and everyone
> will always be "synchronized".
> 
> what's the best approach for this case?
> 
> thanks!
> 
> -- 
> Crístian Deives dos Santos Viana [aka CD1]

Slow network or WLAN? Use a local rsync server. There is a package for
this (app-admin/gentoo-rsync-mirror) and instructions on the net.

While you are at it, you could also install an http or ftp proxy for
distfiles. net-proxy/http-replicator should do it if you do not want a
complete proxy infrastructure.

>=100MBit connection? Use NFS. You should not only put your portage tree
on this but also distfiles and /var/cache/edb. Do not do this with
/var/db/pkg, however.

Hope this helps
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-23 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23  3:32 [gentoo-user] synchronize portage files in a LAN Crístian Viana
2009-11-23  4:24 ` Richard Marza
2009-11-23  5:04 ` Dale
2009-11-23 17:46 ` Florian Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox