Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 141110

Summary: emerge --sync myownhostname
Product: Portage Development Reporter: ivo welch <ivo.welch>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 136244    

Description ivo welch 2006-07-19 19:29:50 UTC
# man emerge
       --sync Initiates  a  portage  tree update with one of the rsync.gentoo.org mirrors.

many of us are running multiple gentoo machines.  why can't I just

# emerge --sync myalreadyupdatedserver.com

there could be some sanity checks involved, such as checking whether myalreadyupdatedserver.com is indeed a newer sync than my current tree.
Comment 1 Zac Medico gentoo-dev 2006-07-19 19:36:42 UTC
There's no need to specify a host on the command line.  You simply setup a local rsync mirror and configure the client's make.conf SYNC variable appropriately.

http://gentoo-wiki.com/HOWTO_Local_Rsync_Mirror
Comment 2 ivo welch 2006-07-19 19:47:17 UTC
nice to know.

[a] can this link go into the emerge man page where --sync is described?

[b] this is indeed similar, but not the same.  it would be nice if I did not have to run an rsync daemon on the machine?  if nothing else, my gentoo boxes do not sit on the same local LAN, so I would have to leave rsync open a bit wider than I would like.

/iaw
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-07-20 00:43:42 UTC
referring from a config file to a wiki is a bad idea, IMO. I added a note to make.conf.example hinting that specifying a local box is also possible. As for rsync server: emerge calls the rsync binary, like a user would. If you leave out the "rsync://" it will ssh into the box and copy the stuff over ssh instead of the rsync server. 
Comment 4 Zac Medico gentoo-dev 2006-07-20 14:06:38 UTC
This has been released in 2.1.1_pre3-r2.
Comment 5 ivo welch 2006-07-24 07:16:03 UTC
hi zac:  what has been released?

another thought---the easier you make it to sync (even on occasion) from one computer to another, the less load there will be on the gentoo servers.

/iaw
Comment 6 Zac Medico gentoo-dev 2006-07-24 08:03:30 UTC
There's a note in /etc/make.conf.example now and it includes this link:

http://www.gentoo.org/doc/en/rsync.xml