| View previous topic :: View next topic |
| Author |
Message |
D-LINC Tux's lil' helper

Joined: 31 Jan 2011 Posts: 131 Location: Alaska
|
Posted: Mon Apr 02, 2012 9:53 pm Post subject: Pull portage snapshot from a local computer? |
|
|
Hi. I have a small network with a PC and a server. Currently, come update time, both systems get the tree with "eix-sync -w". To save on bandwidth, is there a quick and easy way I can have the PC get (and use) the snapshot from the server once the server has already downloaded it? The PC already has key-based scp access into said server. _________________ frigidcode.com |
|
| Back to top |
|
 |
mv Advocate


Joined: 20 Apr 2005 Posts: 3149
|
Posted: Mon Apr 02, 2012 10:34 pm Post subject: |
|
|
How about using the -s option of eix-sync?
Or you can use squashfs+aufs and just update the squashfs file from the server. |
|
| Back to top |
|
 |
Trog Dog Apprentice

Joined: 04 Aug 2007 Posts: 282
|
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9464 Location: Córdoba (Spain)
|
Posted: Tue Apr 03, 2012 11:25 am Post subject: |
|
|
I've used nfs with some success in the past to share the portage directory across all my home computers, that way I only needed a single copy of portage in my server. nfs has it's own assortment of problems, though. _________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
Naib Advocate


Joined: 21 May 2004 Posts: 3930 Location: UK - Birmingham
|
Posted: Tue Apr 03, 2012 11:56 am Post subject: |
|
|
I would go with rsync.
I have one box that emerge --sync from the gentoo mirrors. My other boxes then end up syncing from 192.168.0.2 _________________ A free press is the unsleeping guardian of every other right that free men prize; it is the most dangerous foe of tyranny. Where men have the habit of liberty, the Press will continue to be the vigilant guardian of the rights of the ordinary citizen. |
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4625 Location: ~Brussels - Belgique
|
Posted: Tue Apr 03, 2012 12:42 pm Post subject: |
|
|
Hello,
I used first rsync, but when I discovered using a squashed portage tree makes portage REALLY FAST, I sync from the "master" onto a temporary folder, then squash all the portage tree, then replicate the squashed archive (about 80 Mo with XZ compression). _________________ Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be |
|
| Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 3911 Location: india
|
Posted: Tue Apr 03, 2012 1:51 pm Post subject: |
|
|
if it is an always on computer why not mount the portage of the computer in your system by usb connection?
it will save a 3 Gb space also in your system and other computers if it is done so _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
| Back to top |
|
 |
cwr Veteran

Joined: 17 Dec 2005 Posts: 1464
|
Posted: Tue Apr 03, 2012 5:53 pm Post subject: |
|
|
Or export the original portage directory with SMBFS - that's what I sometimes do.
Wil |
|
| Back to top |
|
 |
drescherjm Advocate

Joined: 05 Jun 2004 Posts: 2746 Location: Pittsburgh, PA, USA
|
Posted: Tue Apr 03, 2012 6:13 pm Post subject: |
|
|
I have been using the rsync mirror method at home and at work for 6+ years. It works very well. Easy to install. And no problems ever. _________________ John
My gentoo overlay
Instructons for overlay |
|
| Back to top |
|
 |
|