Problem with filenames with commas in them
cl at isbd.net
Wed Dec 12 11:39:46 GMT 2007
On Wed, Dec 12, 2007 at 09:33:14AM +0000, Chris G wrote:
> 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]
... I have found a solution, I had to install rsync version 3.0.0 to
get it though.
If I use the --temp-dir option to put temporary files on the local
ext3 filesystem then the rsync succeeds, hurrah! :-)
home# /usr/local/bin/rsync -r --temp-dir=/tmp .in /freecom/backup/home/chris/Mtest
(I have the version 3.0.0pre6 installed in /usr/local/bin at the
While I'm about it the alternative -T option for --temp-dir doesn't
work, rsync just says "-T=/tmp: unknown option".
Still I seem to have a fix for my problem.
More information about the rsync