I'm using CWRSync 2.6.9 protocol 29 on a Windows 2003 Standard R2 server. I'm trying to copy files onto a local usb harddrive. Both filesystems are NTFS. Rsync is failing to copy some files due to the file name length. I kind of assumed that Rsync could handle the same file name length that Windows users are allowed to enter. :-) Is there *anything* I can do with Rsync to allow these kind of files to be copied? Ok, I know these file names are ridiculous but Users will be Users wouldn't they? Here is an example of an error log it reports. rsync: mkstemp "/cygdrive/x/20070221(Wednesday)/Users_profiles/DavidV/Favorites/Pipa Det/.AC-CESS AC-ROV, ROV, rov, mini ROV, micro ROV, low cost ROV, inspection class ROV, underwater camera, underwater rov, security inspection, remote visual inspection, acrov, small rov.url.gt1Uh8" failed: File name too long (91) rsync: mkstemp "/cygdrive/x/20070221(Wednesday)/Users_profiles/DavidV/Favorites/Pipa Det/Flexible PCB/.Conventional PCB Design and Assembly, Electronic, Plated Through- Thru Hole (PTH) Design and Manufacture, Stock Management Program, Software, System Saturn Solutions UK.url.7zTYDS" failed: File name too long (91) rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9] -- Stuart Halliday This email is the property of ECS Technology Ltd. This company is registered in Scotland with company number 212513. VAT registered GB 761 7456 12 http://www.ecs-tech.com/
On Wed, Feb 21, 2007 at 10:52:50AM +0000, Stuart Halliday wrote:> rsync: mkstemp "..." failed: File name too long (91)Note that this is an OS error, so rsync is just reporting the failure that the mkstemp() call didn't work. You might be able to work around the problem by copying more deeply in the hierarchy (and avoid the errors higher up by excluding the deep sections). ..wayne..
Path length limitiation comes from the underlying OS, cygwin in this case. It has a max path length of 260 chars, if I remember correctly. Tev> -----Original Message----- > From: rsync-bounces+tevfik=itefix.no@lists.samba.org > [mailto:rsync-bounces+tevfik=itefix.no@lists.samba.org] On > Behalf Of Stuart Halliday > Sent: Thursday, February 22, 2007 10:34 AM > To: rsync@lists.samba.org > Subject: Re: Problem with Rsync or Users will be Users? > > Various web sites says this about NTFS files. > > > Individual file names in NTFS are limited to 255 characters; > full paths are limited to 32,767 characters > > This filename is a mere 191 long > Path is a lot less than 32,767... :-) > > So how come it is an OS error when Rsync tries to copy it? > > -------------------------------------------------------------- > ---------- > /cygdrive/x/20070221(Wednesday)/Users_profiles/DavidV/Favorites/Pipa > Det/.AC-CESS AC-ROV, ROV, rov, mini ROV, micro ROV, low cost > ROV, inspection class ROV, underwater camera, underwater rov, > security inspection, remote visual inspection, acrov, small > rov.url.gt1Uh8 > -------------------------------------------------------------- > ---------- > > > ref: > http://en.wikipedia.org/wiki/NTFS#Limitations > > > -- > Stuart Halliday > > > This email is the property of ECS Technology Ltd. > This company is registered in Scotland with company number 212513. > VAT registered GB 761 7456 12 > http://www.ecs-tech.com/ > > > -- > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: > http://www.catb.org/~esr/faqs/smart-questions.html > >