I am facing one problem with rsync. in /etc/rsyncd.conf file , one of my entry is like bellow. path = /data/Knowledge Centre With this, rsync report an error "chdir failed, no such directory". Even i tried like bellow path = /data/Knowledge\ Centre with this also, it gives the same error ? How to overcome this ? what is the right syntax ? -- Thanks & Regards, Shashi Kanth -------------- next part -------------- HTML attachment scrubbed and removed
On Tue, 2008-07-29 at 10:47 +0530, Shashi Kanth Boddula wrote:> I am facing one problem with rsync. in /etc/rsyncd.conf file , one of > my entry is like bellow. > > path = /data/Knowledge Centre > > With this, rsync report an error "chdir failed, no such directory". > > Even i tried like bellow > > path = /data/Knowledge\ Centre > > with this also, it gives the same error ? > > How to overcome this ? what is the right syntax ?The first syntax works for me with rsync 3.0.3; I wonder why it doesn't work for you. Double-check that you have the path right and then run the daemon under strace to confirm the path to which it is trying to chdir. Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20080729/b5bc19b4/attachment.bin
You probably need to single quote it along with the backslashes. That is what scp requires Kyle On Jul 29, 2008, at 1:17 AM, "Shashi Kanth Boddula" <shashi.bsd@gmail.com > wrote:> I am facing one problem with rsync. in /etc/rsyncd.conf file , one > of my entry is like bellow. > > path = /data/Knowledge Centre > > With this, rsync report an error "chdir failed, no such directory". > > Even i tried like bellow > > path = /data/Knowledge\ Centre > > with this also, it gives the same error ? > > How to overcome this ? what is the right syntax ? > > -- > Thanks & Regards, > Shashi Kanth > > -- > Please use reply-all for most replies to avoid omitting the mailing > list. > To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
On Tue, Jul 29, 2008 at 10:47:52AM +0530, Shashi Kanth Boddula wrote:> path = /data/Knowledge CentreMy only addition to what has already been said is to quote the manpage: Leading and trailing whitespace in a parameter value is discarded. Internal whitespace within a parameter value is retained verbatim. So another thing to ensure is that the whitespace exactly matches the dirname (e.g. a single space and not a tab or multiple spaces). ..wayne..