Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pull portage snapshot from a local computer?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
D-LINC
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2011
Posts: 131
Location: Alaska

PostPosted: Mon Apr 02, 2012 9:53 pm    Post subject: Pull portage snapshot from a local computer? Reply with quote

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
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 3149

PostPosted: Mon Apr 02, 2012 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trog Dog
Apprentice
Apprentice


Joined: 04 Aug 2007
Posts: 282

PostPosted: Tue Apr 03, 2012 9:55 am    Post subject: Reply with quote

Check out these links http://www.gentoo.org/doc/en/rsync.xml and http://forums.gentoo.org/viewtopic-t-173226.html - not sure if they work with eix - but they certainly work with normal emerge --sync. I've got 6 boxes that use this setup, 1 is the main server and the remaining 5 "feed" off of it.
_________________
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
Back to top
View user's profile Send private message
i92guboj
Moderator
Moderator


Joined: 30 Nov 2004
Posts: 9464
Location: Córdoba (Spain)

PostPosted: Tue Apr 03, 2012 11:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Advocate
Advocate


Joined: 21 May 2004
Posts: 3930
Location: UK - Birmingham

PostPosted: Tue Apr 03, 2012 11:56 am    Post subject: Reply with quote

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
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4625
Location: ~Brussels - Belgique

PostPosted: Tue Apr 03, 2012 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 3911
Location: india

PostPosted: Tue Apr 03, 2012 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1464

PostPosted: Tue Apr 03, 2012 5:53 pm    Post subject: Reply with quote

Or export the original portage directory with SMBFS - that's what I sometimes do.

Wil
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2746
Location: Pittsburgh, PA, USA

PostPosted: Tue Apr 03, 2012 6:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum