Rsync with non-english characters in filenames?
Jan-Benedict Glaw
jbglaw at lug-owl.de
Mon Jun 18 10:20:29 GMT 2007
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 :)
MfG, JBG
--
Jan-Benedict Glaw jbglaw at lug-owl.de +49-172-7608481
Signature of: ...und wenn Du denkst, es geht nicht mehr,
the second : kommt irgendwo ein Lichtlein her.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/rsync/attachments/20070618/10668824/attachment.bin
More information about the rsync
mailing list