View previous topic :: View next topic |
Author |
Message |
Karl_R Tux's lil' helper
Joined: 21 Mar 2004 Posts: 118 Location: Sydney
|
Posted: Mon May 10, 2010 1:19 am Post subject: [SOLVED] Can we have Some SSH rsync servers? |
|
|
Hi All,
Does Gentoo have a mechanism to "emerge --sync" over ssh?
I run Gentoo on my laptop that I occasionally use at work, behind the corporate firewalls. These firewalls never allow rsync default port traffic.
My friend running BSD laughs at me that Gentoo "still use rsync" for portage package data, and not even rsync over ssh.
Are there Gentoo mirrors that will allow the rsync daemon over ssh and better still do they listen on port 443 which is always open on our firewalls?
If so How can I tell the "emerge --sync" command to use ssh on port 443?
I know I can use "emerge-webrsync" but that seems kind of lame
Cheers
Karl
Last edited by Karl_R on Sun May 16, 2010 1:41 pm; edited 1 time in total |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9509 Location: beyond the rim
|
Posted: Mon May 10, 2010 10:06 am Post subject: |
|
|
AFAIK there are no official rsync mirrors offering ssh access or access over non-default ports. Doesn't mean they don't exist, but you'd be at the mercy of the mirrors admin. Also syncing over ssh isn't directly possible anway as emerge needs the rsync:// prefix in the SYNC url to determine the protocol to be used, which conflicts with the rsync syntax for ssh based connections. However you could of course just bypass emerge and call rsync directly, you can find the necessary options with `emerge --info | grep PORTAGE_RSYNC_OPTS` (depending on your setup you might have to call `emerge --metadata afterwards`). |
|
Back to top |
|
|
few Guru
Joined: 03 Mar 2008 Posts: 448
|
Posted: Mon May 10, 2010 10:18 am Post subject: |
|
|
You can tell rsync to use ssh with the "-e ssh" option. I'm using this to sync against my binhost. This still gives you no server that allows this.
PORTAGE_RSYNC_OPTS (default + "-e ssh"):
"--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages -e ssh"
SYNC="rsync://<user>@<server>/gentoo-portage" |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9509 Location: beyond the rim
|
Posted: Mon May 10, 2010 11:48 am Post subject: |
|
|
few wrote: | You can tell rsync to use ssh with the "-e ssh" option. I'm using this to sync against my binhost. This still gives you no server that allows this.
PORTAGE_RSYNC_OPTS (default + "-e ssh"):
"--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages -e ssh"
SYNC="rsync://<user>@<server>/gentoo-portage" |
If that works (it didn't when I tested it a few years ago) it's better to use PORTAGE_RSYNC_EXTRA_OPTS rather than messing with the defaults. |
|
Back to top |
|
|
few Guru
Joined: 03 Mar 2008 Posts: 448
|
Posted: Mon May 10, 2010 12:16 pm Post subject: |
|
|
Genone wrote: | few wrote: | You can tell rsync to use ssh with the "-e ssh" option. I'm using this to sync against my binhost. This still gives you no server that allows this.
PORTAGE_RSYNC_OPTS (default + "-e ssh"):
"--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages -e ssh"
SYNC="rsync://<user>@<server>/gentoo-portage" |
If that works (it didn't when I tested it a few years ago) it's better to use PORTAGE_RSYNC_EXTRA_OPTS rather than messing with the defaults. |
Cool, didn't know that it exists. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon May 10, 2010 12:36 pm Post subject: |
|
|
Yeah me too |
|
Back to top |
|
|
Karl_R Tux's lil' helper
Joined: 21 Mar 2004 Posts: 118 Location: Sydney
|
Posted: Sun May 16, 2010 1:40 pm Post subject: |
|
|
Thanks guys,
This is helpful. I realise that there would be an issue with key distribution for official ssh mirrors, but it may solve my problem anyway. I just have to set up my own mirror and use the PORTAGE_RSYNC_EXTRA_OPTS flag.
Cheers
Karl |
|
Back to top |
|
|
|