Re: Lower-case filenames on receiver side

2008-04-09 Thread Marco Bridge

On 9 Apr, 2008, at 03:20 , Matt McCutchen wrote:

I would suggest tinkering with the shortname mount option of the FAT
partition and using the --ignore-case rsync option added by this  
patch:

http://rsync.samba.org/ftp/rsync/patches/ignore-case.diff


I tried to patch but that alone does not seem to do it.
I should try the shortname mount option but at the moment
i'd rather not play with that machine's mounts...
OS X does not seem to offer that option so i can't try with
my external drive (FAT32 too).

Is the --ignore-case option going to be included at some point in the  
future?


Thanks a lot for the help
Marco
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Lower-case filenames on receiver side

2008-04-08 Thread Marco Bridge
Thanks for your answer, i just learned case-preserving and case- 
sensitive

are two different things...
The source partition on my mac is case sensitive
the problem is probably the target FAT partition on linux.

Now that i think of it, my other backup that goes to an ext3 partition  
on

the same machine does not have this problem.

It's still strange that for all other files in the same sync it works  
fine...


Thanks for your answers
Marco

On 8 Apr, 2008, at 16:33 , Kyle Lanclos wrote:


You are going from a case-insensitive filesystem (HFS or HFS+) to a
case-sensitive one on the Linux host. If the Mac is inconsistent about
how it reports the filename, I can see how you might have problems  
like

what you describe.

I am not intimately familiar with problems of this type, as I stay  
away
from case-insensitive filesystems as much as possible. While the  
inconsistent
behavior is strange, I wouldn't be surprised if the root cause is  
buried

somewhere in Apple's filesystem code.

--Kyle



On 8 Apr, 2008, at 16:34 , Wayne Davison wrote:

On Tue, Apr 08, 2008 at 10:16:05AM +0200, Marco Bridge wrote:

I mean, rsync seems to be arbitrarily changing filenames


No, rsync doesn't change filesnames at all.  You should be looking for
external reasons for the inconsistencies, such as inconsistent case in
the source filename arguments (when combined with a case-ignoring
filesystem), the copying from a case-honoring filesystem to a
case-ignoring filesystem with overlapping directory names, and/or
behind-the-scenes filesystem re-mapping of names.

..wayne..


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Lower-case filenames on receiver side

2008-04-05 Thread Marco Bridge

Hi everybody,
i've been using rsync for quite some time to sync files between my  
laptop and my desktop
for example i use the following to backup the music library (from Mac  
to Linux)
rsync -rvzu --exclude=.DS_Store --delete --exclude 'Podcasts/*'  
$LOCAL_MUSI $REMOTE_MUSIC  $LOGFILE


An odd thing i always noticed is that some files were always copied,
even running the above command 2 times consecutively.
This was happening only for about 30 files in a library of 3000+ songs  
and with some pdf documents,

so it seemed just some weirdness in the files.

However i just noticed something interesting from today's log,
there seems to be something wrong with the capitalization of some  
filenames

deleting acdc/Back In Black/Back In Black.mp3
deleting acdc/Back In Black/
deleting Pink Floyd/The division Bell/Cluster one.mp3
deleting Pink Floyd/The division bell/Keep tolking.mp3
deleting Pink Floyd/The division bell/A great day for freedom.mp3
...
ACDC/Back In Black/
ACDC/Back In Black/Back In Black.mp3
Pink Floyd/The division Bell/A great day for freedom.mp3
Pink Floyd/The division Bell/Keep tolking.mp3
Pink Floyd/The division bell/Cluster one.mp3


The folder 'ACDC/' is copied to the other computer as 'acdc/'
for this reason the next time it will be deleted and re-sent.

in the Pink Floyd case, look at how the 'B' in 'Bell' changes
In this case the folder name seems to be ok on the receiver side,
but rsync deletes the entire folder anyway.

Notice that there are many other file in my library with mixed upper  
and lower-case names

(also full upper/lower-case) and they're not affected.

What could be causing that?

Best regards
Marco

More info
*Source
Filesystem: Mac OS Extended
Macintosh, OSX 10.5 Leopard
rsync  version 2.6.3  protocol version 28
Capabilities: 64-bit files, socketpairs, hard links, symlinks,  
batchfiles,

  inplace, IPv6, 32-bit system inums, 64-bit internal inums

*Destination
Ubuntu Linux 7.10
Filesystem: vfat (fat32)
rsync  version 2.6.9  protocol version 29
Capabilities: 64-bit files, socketpairs, hard links, symlinks,
batchfiles, inplace, IPv6, ACLs,
64-bit system inums, 64-bit internal inums


-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html