Re: cannot create /padrao/.oi2.sJ5loG : No such file or directory
An analysis of your command line, (information gleaned by R(eading) T(he) F(***ing) M(anual): rsync -uve ssh ./oi2 drcpc1:/padrao/oi2 Using ssh, rsync ./oi2 into the directory /padrao/oi2 on drcpc1, updating only older files, lightly verbose. Your apparent intention is to create a subdirectory named oi2 inside the module named padrao, which is actually /usr/adm/padrao. My guess is that that isn't even what you want to do, but rather to put the CONTENTS of oi2 into the subdirectory oi2 of padrao. as you've already got ssh working, and you are writing to that system, you should forget about the rsyncd.conf entirely. writing to rsyncd doesn't work well, and leaves you open to modification of your files, with no accountability, unless you use a password, which is still eminently sniffable. The commandline you're probably looking for is rsync -uve ssh ./oi2/ drcpc1:/usr/adm/padrao/oi2. That's by the manual. I have actually had unexpected bad luck using the trailing / syntax, and had many subdirectories seem to be missing from the source, and deleted 3/4 of my installation. you might prefer this syntax: rsync -uve ssh ./oi2 drcpc1:/usr/adm/padrao. This syntax has the added advantage that if it's used in a generic synchronization script, it works whether you're sending a file or a directory, with no syntax change. If you insist on writing to the rsyncd, you'll need rsync -uv ./oi2 drcpc1::/padrao. forget the ssh, that's an external transport, like the default rsh. using the :: tells rsync to use it's internal transport, directly to a waiting (or inetd-spawned) rsyncd. Don't worry about the odd name, .oi2.sJ5loG, rsync first creates a file or directory as a hidden file with some random gibberish at the end of its filename, then moves it over. Without knowing more about your specific setup, i can't get any deeper. Please ignore this philips-required confidentiality notice. The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. Tim Conway [EMAIL PROTECTED] 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips Available as n9hmg on AIM perl -e 'print pack(, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), .\n ' There are some who call me Tim? Andreia Pio da Silva - funcTo: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: (bcc: Tim Conway/LMT/SC/PHILIPS) amp.br Subject: cannot create /padrao/.oi2.sJ5loG : No such file or directory Sent by: rsync-admin@lists Classification: .samba.org 10/23/2001 09:56 AM Hi, I'm trying to use rsync. my /usr/local/etc/rsyncd.conf is: log file = /var/log/rsyncd pid file = /etc/rsyncd.pid syslog facility = local5 [padrao] comment= Arquivos para Configuracao Maq RedHat path=/usr/adm/padrao
Re: rsync recursion question
That's the way it is. If it's really a one-off change, a huge change in your structure, telnet ssh, rsh, and so forth, work really well for dropping in and deleting stuff (unless you're supplying the master, and other systems out of your control copy from you). Rsync is optimized for taking a filesystem in an unknown state, and making it identical to another filesystem in an unknown state, using network bandwidth as efficiently as possible. Once again, please ignore my stupid confidentiality notice. New notes client, required upgrade, can't delete the danged thing. The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. Tim Conway [EMAIL PROTECTED] 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips Available as n9hmg on AIM perl -e 'print pack(, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), .\n ' There are some who call me Tim? Justin Banks justinb@tricord. To: [EMAIL PROTECTED] comcc: (bcc: Tim Conway/LMT/SC/PHILIPS) Sent by:Subject: rsync recursion question rsync-admin@lists .samba.org Classification: 10/23/2001 11:37 AM Please respond to justinb Hello - I have a problem/question about rsync's recursion and directory replication. Here's the problem. Say I have a large filesystem, on the order of a TB. It's all under /mnt/bigfs on host local. In /mnt/bigfs, I have three directories, a, b, and c. I remove directory a. I want to propagate this change to the host remote, and what I'd like to do is have host remote just remove directory a recursively. The only way I can see to do that is to send directory /mnt/bigfs recursively from host sender. This doesn't work very well, though, 'cause it takes a *really* long time to walk the whole filesystem. I know the only thing that's changed is the existence of directory a - how to I propagate that change, and that change only? -justinb -- Justin Banks Tricord, Inc. [EMAIL PROTECTED] The Church says that the earth is flat, but I know that it is round, for I have seen the shadow on the moon, and I have more faith in a shadow than in the Church. --Ferdinand Magellan
Re: Connection Timeout
There you go. rsync -vn --timeout=0 [EMAIL PROTECTED]::webfiles /local_user/frank/myjsppages, and add the password when it asks, IF it asks. did you set up the rsyncd.conf with security? If not, it's rsync -vn --timeout=0 server.domain.com::webfiles /local_user/frank/myjsppages. The ssh stuff will only make it fail, as you're trying to use rsync's internal transport, rather than relying on an external one. Now, you know, adding -n will mean it will only say what i WOULD do if not running as a dry run (-n== --dry-run), so don't be surprised when nothing transfers. Also, as the webfiles is a module, it's a directory. rsync won't just transfer a directory. see example: ++ atlas{karrie}% rsync willy:: big big1 ToolSyncModules sjt-tools-master1 sjt-tools1 sjt-tools2 Tools atlas{karrie}% rsync willy::big . client: nothing to do: perhaps you need to specify some filenames or the --recursive option? atlas{karrie}% ++ You'll want to refer to its contents somehow, either just that top level, with /* or simply /, or by a -r (or -r-implying) option. rsyncd at leasts responds, (the telnet trick). You're also well on your way to understanding... most people failing to go to a rsyncd aren't even using the correct syntax to refer to the remote resource. I can finally delete these stupid security disclaimers. Tim Conway [EMAIL PROTECTED] 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips Available as n9hmg on AIM perl -e 'print pack(, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), .\n ' There are some who call me Tim? Jeff Sims sims@interex To: Tim Conway/LMT/SC/PHILIPS@AMEC .org cc: Subject: Re: Connection Timeout 10/23/2001 03:07 PMClassification: Tim, The commandline is as shown below: /opt/rsync/bin/rsync -vn --timeout=0 -e ssh [EMAIL PROTECTED]::webfiles /local_user/frank/myjsppages If I telnet to port 873 on the local machine or any machine on my local network I get the following: # telnet localhost 873 Trying... Connected to localhost.interex.org. Escape character is '^]'. @RSYNCD: 24 If I telnet to port 873 from an outside network it doesn't give feedback, just says Trying and doesn't move. Here is the feedback from the ssh server.domain.com rsync --version command: ssh server.domain.com rsync --version [EMAIL PROTECTED]'s password: rsync version 2.4.6 protocol version 24 Written by Andrew Tridgell and Paul Mackerras The file /etc/services has this line present: rsync873/tcp # Rsync server The file /etc/inetd.conf has the following line: rsync stream tcp nowait root/opt/rsync/bin/rsync rsyncd --daemon I think this covered all of your inquiries and I hope this info is useful. Thanks for all your help so far. Jeff *** REPLY SEPARATOR *** On 10/23/01 at 12:35 PM [EMAIL PROTECTED] wrote: Aaahhh... I see now. connection timeout, not io or select timeout. What's the commandline? if it's to a rsyncd, what happens when you telnet server.domain.com 873? It should look something like: tconway@atlas /users/tconwaytelnet localhost 873 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. @RSYNCD: 25 If it's not to rsyncd, what happens when you rsh server.domain.com rsync --version (or if you're doing ssh, ssh instead of rsh, of course)? if that fails, is it a permission or network problem? Please ignore the following silly confidentiality message. The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction
hanging issues
Hi List, I was going through the rsync archives to find any patches to deal with hanging issues, seems to be there are patches but there are no instructions on how to apply these patches. For instance the following email points to the links where we can download patches On Tue, 10 Jul 2001, Steve Ladendorf wrote: Is there something I'm doing wrong? What can I do to prevent rsync from hanging all the time?? If you avoid using -v, that can help rsync not to hang. However, a better fix is to apply this patch: http://www.clari.net/~wayne/rsync-nohang1.patch This fixes a very common hang problem, and makes -v safe to use again. Since you are also transferring large quantities of files, I would be very interested in knowing if rsync still hangs after applying that patch. If it does, try applying this patch: http://www.clari.net/~wayne/rsync-nohang2.patch The second patch fixes a much rarer bug, and it would be great to know if someone had run into it in simple, real-world conditions. ..wayne.. -- How do I apply these patches, could someone help me on that. Thanks in advance Raj = __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com