Brian K. White wrote:
----- 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
Brian, That was the best damn explanation of the other 1/2 of rsync I could have ever hoped for! Thank you. I was frustrated at first being quite adept at fairly sophisticated single colon ssh rsync operations. The nfs/samba share analogy and walk-through threw the switch and the lightbulb came on. I have probably read through the rsync man page 50 times, and I had noticed the double colon explanation and always digested the information as some sort of 'abstraction' in rsync. The example was the key. Thank you! Now after I re-download the rpms, maybe I can get my damn window decorations to reappear. Thanks .... and don't be surprised if you see a bulk of your wisdom appear on my rsync page when it gets done. I've dropped the message in my /srv/www/tmp/todo folder. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org