Rsync with non-english characters in filenames?

Fredrik Karlsson dargosch at gmail.com
Mon Jun 18 13:53:25 GMT 2007


Hi,

The files are currently stored on an ext2 file system, and the new
server uses the Mac OS X extended (Journaled) file system. I'm not
sure that this is the problems though.. I am currently trying scp for
the move, and it seems to work ok. (Haven't tried it out completely
yet)



/Fredrik


On 6/18/07, Jan-Benedict Glaw <jbglaw at lug-owl.de> wrote:
> On Mon, 2007-06-18 13:59:59 +0200, Fredrik Karlsson <dargosch at gmail.com> wrote:
> > On 6/18/07, Jan-Benedict Glaw <jbglaw at lug-owl.de> wrote:
> > > On Mon, 2007-06-18 12:00:00 +0200, Fredrik Karlsson <dargosch at gmail.com>
> > > wrote:
> > > > I am trying to use rsync to migrate homefolders from one server to
> > > > another. For this I use:
> > > >
> > > > >rsync --rsh="ssh -l root" -vaz beaucent.ling.umu.se:/export/home/ .
> > > >
> > > > Which works fine until I get to some files where the user has,
> > > > unfortunatelly, used a non-ascii character in the file name:
> > > >
> > > > --- snip --
> > > > ....
> > > > rsync: recv_generator: mkdir
> > > > "/Volumes/Home_dirs/homes/students/kv04/kv04hen/inl?mningsuppgifter"
> > > > failed: Invalid argument (22)
> > > > rsync: stat
> > > > "/Volumes/Home_dirs/homes/students/kv04/kv04hen/inl?mningsuppgifter"
> > > > failed: Invalid argument (22)
> > > > rsync: recv_generator: mkdir
> > > > ....
> > > > <--- /snip ---->
> > > >
> > > > Is there a way to protect these filenames?
> > >
> > > Filenames are transferred as-is. The target filesystem doesn't allow
> > > for these characters. What filesystem type is it?
> > >
> > > https://bugzilla.samba.org/show_bug.cgi?id=2790 mentions a patch,
> > > http://opencoder.net/iconv.diff ,  to recode filenames using iconv.
> > >
> > > Just search for "rsync iconv", you'll find some additional hints :)
> > >
> > Thank you for the reply. The server on which the files are stored is a
> > Debian Linux box.
> > The server I am migrating to is a Mac OS X server box. I have managed
> > to apply the iconv patch to the linux side of rsync, but it seems to
> > be more complicated on the mac.
>
> What filesystem are you writing to?  It's not a encoding problem per
> se, but the *filesystem* refuses to create the file/directory.
> Something like FAT or so?
>
> MfG, JBG
>
> --
>       Jan-Benedict Glaw      jbglaw at lug-owl.de              +49-172-7608481
>  Signature of:                    Don't believe in miracles: Rely on them!
>  the second  :
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFGdobiHb1edYOZ4bsRAtFLAJ9mbtO3i6j/DCgIJjnKk+Oz05PFaQCeNPFI
> LoDNYZZ0W2heJUT2h7Hm1zQ=
> =NUgJ
> -----END PGP SIGNATURE-----
>
>


-- 
"Give up learning, and put an end to your troubles."


More information about the rsync mailing list