Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. -- ER
I've never heard of a name length limit. One operating system(s) and rsync version(s) are you using? - Dave On Wed, Jan 08, 2003 at 07:32:19AM -0800, elijah reyen wrote:> Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. > > $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache > building file list ... > readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied > readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied > > When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. > -- > ER
We experience that as well. We use (sadly) Rsycn in Win32 environment. I hear it's due to the Cygwin utilities. Rgds, Bart Coninckx Network Administrator CNE, ASE ************************************* Sita ICT Services Lilsedijk 19 B-2340 Beerse Belgium e-mail: bart.coninckx@sita.be Tel: + 32 (0) 14 62 28 22 Fax: + 32 (0) 14 62 41 47 ************************************* Dave Dykstra <dwd@drdykstra.us To: elijah reyen <rsync@reyen.com> > cc: rsync@lists.samba.org Sent by: Subject: Re: long directory name problem rsync-admin@lists .samba.org 01/08/2003 21:17 I've never heard of a name length limit. One operating system(s) and rsync version(s) are you using? - Dave On Wed, Jan 08, 2003 at 07:32:19AM -0800, elijah reyen wrote:> Does rsync has directory name length limit? I was trying to rsync adirectory that has the name length of 34 characters and getting permission denied error.> > $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs192.168.0.2:/usr/local/apache> building file list ... > readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif:Permission denied> readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif:Permission denied> > When I rename the directory to about half of its original length, theerror goes away. Any advise are appreciated.> -- > ER-- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
All, Here is the complete picture of what I am doing: OS: RedHat Linux 7.2 Kernel 2.4.19 Here is the script that I am running with: #!/usr/bin/expect spawn su - rsyncusr expect { "ter]\$ " {send "rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache;exit\n"} } interact jw schultz <jw@pegasys.ws> wrote ..> On Wed, Jan 08, 2003 at 02:17:16PM -0600, Dave Dykstra wrote: > > I've never heard of a name length limit. One operating system(s) and > rsync > > version(s) are you using? > > > > - Dave > > > > On Wed, Jan 08, 2003 at 07:32:19AM -0800, elijah reyen wrote: > > > Does rsync has directory name length limit? I was > > > trying to rsync a directory that has the name length of > > > 34 characters and getting permission denied error. > > > > > > $ rsync -avz --delete --force -e ssh > > > /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache > > > building file list ... readlink > > > htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: > > > Permission denied readlink > > > httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: > > > Permission denied > > > > > > When I rename the directory to about half of its > > > original length, the error goes away. Any advise are > > > appreciated. > > You aren't hitting an rsync limit. The only limit existing > in rsync is MAXPATHLEN which if not defined by the libs will > be 1024. > > Whatever is doing it seems to have a bug in any case. > readlink or stat should return set errno to ENOENT, > ENAMETOOLONG, or ENOTDIR depending on what is actually > causing the error. EACCESS means the file is there and the > path is good, you just don't have permission. > > Most likely it is the libraries causing the problem. > > In addition to the OS and rsync version question, what are > the filesystem types? > > > > -- > ________________________________________________________________ > J.W. Schultz Pegasystems Technologies > email address: jw@pegasys.ws > > Remember Cernan and Schmitt > -- > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html