Problem with filenames with commas in them

Chris G cl at isbd.net
Wed Dec 12 09:33:14 GMT 2007


This is a continuation of my previous problem where cp could copy
files whereas rsync couldn't.  It turns out that the problem is with
files which have commas in their names, rsync can write the initial
version of the file but it can't check/rewrite them.

Here is the error I get from rsync when trying to overwrite the files
(using --inplace) :-

    home# rsync -r --inplace .in /freecom/backup/home/chris/Mtest/   
    rsync: open "/freecom/backup/home/chris/Mtest/.in/audacity/cur/1172007150.76430_0.newred:2," failed: Input/output error (5)
    rsync: open "/freecom/backup/home/chris/Mtest/.in/audacity/cur/1172012773.6188_0.newred:2," failed: Input/output error (5)
    rsync: open "/freecom/backup/home/chris/Mtest/.in/audacity/cur/1172032604.34523_0.newred:2," failed: Input/output error (5)
    rsync: open "/freecom/backup/home/chris/Mtest/.in/audacity/cur/1172038263.69147_0.newred:2," failed: Input/output error (5)
    rsync: open "/freecom/backup/home/chris/Mtest/.in/freecycle/cur/1172005922.70482_0.newred:2,S" failed: Input/output error (5)
    rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]

Now if I do a find for the maildir files in the destination directory
I see:-

    ./audacity/cur/1172007150.76430_0.newred:2,
    ./audacity/cur/1172012773.6188_0.newred:2,
    ./audacity/cur/1172032604.34523_0.newred:2,
    ./audacity/cur/1172038263.69147_0.newred:2,
    ./cafe/new/1172050891.76512_0.newred
    ./cafe/new/.1172050891.76512_0.newred.Db1dJL
    ./chris/new/1172049386.67574_0.newred
    ./chris/new/1172049415.67719_0.newred
    ./chris/new/1172049422.67809_0.newred
    ./chris/new/1172049736.69687_0.newred
    ./chris/new/1172050647.75211_0.newred
    ./chris/new/1172050647.75212_0.newred
    ./chris/new/1172052822.87331_0.newred
    ./chris/new/1172052833.87374_0.newred
    ./chris/new/.1172052839.87385_0.newred.6zXpLZ
    ./freecycle/cur/1172005922.70482_0.newred:2,S
    ./ixion/new/1172048011.60081_0.newred
    ./ixion/new/1172048786.64308_0.newred
    ./ixion/new/1172048991.65223_0.newred
    ./ixion/new/1172049388.67581_0.newred
    ./ixion/new/1172050165.71835_0.newred
    ./ixion/new/1172050725.75518_0.newred
    ./ixion/new/1172050830.76247_0.newred
    ./ixion/new/1172051518.79746_0.newred
    [snip lots more]

The five errors are on the only five files that have commas in their
names.  Now this *may* be because the destination can't cope with
filenames with commas in very well but the files are certainly
accessible on the destination and appear quite normal.

An "rsync -r" without the --inplace just gets a different error:-

    rsync: rename "/freecom/backup/home/chris/Mtest/.in/audacity/cur/.1172007150.76430_0.newred:2,.V9Pd4n" -> ".in/audacity/cur/1172007150.76430_0.newred:2,": Input/output error (5)



.... and *anyway* why is rsync trying to copy these files at all,
they're unchanged!


-- 
Chris Green


More information about the rsync mailing list