----- Original Message ----- From: "David C. Rankin" <drankinatty@suddenlinkmail.com> To: "suse" <opensuse@opensuse.org> Sent: Sunday, February 08, 2009 5:05 AM Subject: Re: [opensuse] Re: How to mirror rpms with rsync from OSB?
Heinz Diehl wrote:
Den 08.02.2009 klokka 10:12, David C. Rankin skrev:
rsync -avn download.opensuse.org:/repositories/X11\:/XGL/openSUSE_10.3/i586 .
rsync -avz --stats --progress --delete download.opensuse.org:/repositories/X11\:/XGL/openSUSE_10.3/i586/ /local/directory/
If you want to exclude some architectures you simply don't need, add "--exclude" and "--delete-excluded".
Thanks Heinz,
But I'm still running into problems:
03:58 alchemy:~> rsync -avnz --stats --progress --delete download.opensuse.org:/repositories/X11\:/XGL/openSUSE_10.3/i586/ . ssh: connect to host download.opensuse.org port 22: Connection refused rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: unexplained error (code 255) at io.c(635) [receiver=3.0.2]
Any other thoughts? Do I need to specify port information with --port= ?
By having only one colon in the remote address (whether it's the source as in this case, or the target if you were uploading) you are telling rsync to log in to the remote machine via ssh. Do you have an ssh login account on download.opensuse.org? Two colons means an entirely different thing, not merely to use native rsync instead of ssh, but also it means the remote path is a module name followed by a path relative to that module. Think of a module as just rsync's terminology for what nfs and samba and windows call a share. Next, only certain machines even allow anonymous rsync, and download.opensuse.org is not one of them. However, it does let you in enough to find out what to do next: Also, as long as we're talking about anonymous rsync shares like http, rsync supports a url syntax thats pretty convnient. as an anternative way to say: rsync -vl host::module/path/to/file you can also say rsync rsync://host/module/path/to/file without any options it lists the contents, or rather, any contents that the site admin has allowed to be visible in listings. When the full command you tried above didn't work, a reasonable starting point is to just try to list what's available on the host at all, and go from there if there even is anything. Maybe there are no public shares, or maybe the path you think you want is really relative to some share: algol:/tmp/obs # rsync rsync://download.opensuse.org Wed Nov 12 13:56:14 CET 2008 - poeml This is stage.opensuse.org. ********************************************************* ONLY REGISTERED MIRRORS DO HAVE ACCESS TO THIS SERVER ********************************************************* But a public rsync server is also available: rsync.opensuse.org. [...] Well that was obvious enough... so lets try the suggested public host: algol:/tmp/obs # rsync rsync://rsync.opensuse.org This is rsync.opensuse.org, public rsync server of openSUSE.org, limited to 50 connections. If you run a public mirror, please get in contact so we can give you access to the stage rsync server. You'll find conditions for access and further information at http://www.opensuse.org/Mirror_Infrastructure Thanks! admin@opensuse.org opensuse-hotstuff-160gb The most requested stuff that fits into 160 gigabytes opensuse-hotstuff-80gb The most requested stuff that fits into 80 gigabytes opensuse-updates Official updates for released openSUSE distributions opensuse-full The download.opensuse.org tree starting at /pub without daily devel snapshots opensuse-full-with-factory The download.opensuse.org tree starting at /pub including daily devel snapshots opensuse-full-with-factory-dvd5 The download.opensuse.org tree starting at /pub including daily devel snapshots and large, short-lived Beta DVDs opensuse-full-with-factory-drpmsync The download.opensuse.org tree starting at /pub including daily devel snapshots, and drpmsync tree buildservice-repos The repositories from the openSUSE build service buildservice-repos-main The repositories from the openSUSE build service without the home: directories opensuse-tube Videos hosted on tube.opensuse.org nc5:/tmp/obs # AHA! look at all those module names, and look theres a likely suspect: "buildservice-repos-main The repositories from the openSUSE build service without the home:" Lets see what's in there: algol:/tmp/obs # rsync rsync://rsync.opensuse.org/buildservice-repos-main [...] drwxr-xr-x 2800 2009/01/30 13:50:59 . drwxr-xr-x 392 2009/02/03 12:09:13 Apache drwxr-xr-x 128 2008/12/17 05:49:38 Apache: drwxr-xr-x 96 2008/08/26 17:22:19 Application: [...] drwxr-xr-x 480 2008/10/06 06:32:56 X11: [...] So there is your "X11:" directory frm your original attempted path. Let's try skipping ahead and tacking on your probable path from above to this starting point here: algol:/tmp/obs # rsync rsync://rsync.opensuse.org/buildservice-repos-main/X11\:/X GL/openSUSE_10.3/i586/ [...] drwxr-xr-x 1344 2008/09/26 10:17:15 . -rw-r--r-- 445362 2008/09/23 08:04:00 compiz-0.7.6-25.2.i586.rpm -rw-r--r-- 9472 2008/09/23 06:35:41 compiz-bcop-0.7.6-1.1.i586.rpm -rw-r--r-- 57357 2008/09/23 08:04:00 compiz-devel-0.7.6-25.2.i586.rpm [...] OK that looks like what you want, so now just up-arrow and insert -avz to the command and add the " ." after to actually download it. algol:/tmp/obs # rsync -avz rsync://rsync.opensuse.org/buildservice-repos-main/X1 1\:/XGL/openSUSE_10.3/i586 . [...] i586/python-compizconfig-0.7.6-2.2.i586.rpm i586/simple-ccsm-0.7.6-5.2.i586.rpm i586/xgl-git_071026-67.1.i586.rpm i586/xwinwrap-061227-9.1.i586.rpm sent 467 bytes received 6836997 bytes 506478.81 bytes/sec total size is 6832390 speedup is 1.00 algol:/tmp/obs # And it worked, I now have a i586 directory full of rpms algol:/tmp/obs # ls -lR .: total 1 drwxr-xr-x 2 demo 1000 1288 2008-09-26 10:17 i586 ./i586: total 6721 -rw-r--r-- 1 demo 1000 445362 2008-09-23 08:04 compiz-0.7.6-25.2.i586.rpm -rw-r--r-- 1 demo 1000 9472 2008-09-23 06:35 compiz-bcop-0.7.6-1.1.i586.rpm -rw-r--r-- 1 demo 1000 535602 2008-09-23 08:21 compizconfig-settings-manager-0.7.6.2.2.i586.rpm [...] -- Brian K. White brian@aljex.com http://profile.to/KEYofR +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO FreeBSD #callahans Satriani Filk! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org