DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-02-28 18:35:06

davidcie
Member
Registered: 2008-03-29
Posts: 9

rsync charset problem

I'm trying to set up my DNS-323 as an rsync server, with backups coming from XP SP3 and OS X Leopard. For now I've got fun_plug 0.5 installed + ffp-base 0.5-1, rsyncd enabled and rsync on my XP machine (clinent from DeltaCopy 1.3, running it in command line). Now, it was all fine until I noticed that for file and folder names containing non-English characters, those got turned to underscores.

I'm running fw 1.05 (=utf8 DNS side), and NTFS on XP, so I was wondering why this would be happening in the first place... I reckoned since rsync is not a Unicode app perhaps it's using the local codepage specified under regional options in XP (which is iso8859-2). So I enabled iconv support serverside (adding "charset = utf8" in rsyncd.conf) and tried "--iconv=iso8859-2,utf8" option to rsync, but I'm getting the following error:

client side, XP

Code:

c:\Program Files\DeltaCopy>rsync -avz --delete --iconv=iso8859-2,utf8 /cygdrive/z/ mydns::docsbackup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632) [sender=3.0.4]

server side, DNS

Code:

2009/02/28 17:10:51 [2692] connect from UNKNOWN (10.1.1.5)
2009/02/28 17:10:51 [2692] iconv_open("UTF-8", "utf8") failed
2009/02/28 17:10:51 [2692] rsync error: requested action not supported (code 4) at rsync.c(120) [receiver=3.0.2]

My server config as follows:

Code:

readonly = no
list = yes
gid = 501
charset = utf8
log file = /ffp/var/rsyncd.log

[docsbackup]
path = /mnt/HD_a2/dawid.net
uid = dawid

I've been googling around for answers for the past few hours but still haven't found anything useful regarding incompatibility issues with fonz plug, rsync, or the rest of the universe. Will be most grateful for a few helpful tips or pointers (no 0x please ;-)

Offline

 

#2 2009-03-01 06:49:21

davidcie
Member
Registered: 2008-03-29
Posts: 9

Re: rsync charset problem

Ok, after a lot of googling again (couldn't sleep w/ this unresolved) I've identified the culprit: cygwin. I've now got cygwin1 from guys at OKI software that adds utf8 filename support to cygwin and my filenames are transferred correctly, wooohay! So if anyone is having similar issues, go to:

http://www.okisoft.co.jp/esc/utf8-cygwin/

download the dll, get a cake and smile at having just saved 5h of poking around :-)

Offline

 

#3 2009-11-19 12:46:58

davidcie
Member
Registered: 2008-03-29
Posts: 9

Re: rsync charset problem

Hm, have to ask you guys for help once more... What I can do in my batch file is:

Code:

rsync -avz --delete --delete-excluded --exclude-from=exclude.txt -e "ssh -l dawid -i %keypath%" %source% %destination%

However, I'm running into the good ol' iconv_open error as soon as I try to connect directly, w/o the ssh tunnel:

Code:

rsync -avz --delete --delete-excluded --exclude-from=exclude.txt %source% %destination%

From what others were saying the issue could stem from rsync opting to chroot (where to?) unless instructed otherwise. But I've tried specifying "use chroot = no" in rsyncd.conf to no avail. Here is my complete config:

Code:

readonly = no
list = yes
gid = 501
charset = utf8
log file = /ffp/var/rsyncd.log
use chroot = no

[dawid.back]
path = /mnt/HD_a2/dawid.net
uid = dawid
charset = utf8

Anything jumps to mind? Would love to get this one solved, been on the todo list for about a year now!

Last edited by davidcie (2009-11-19 15:15:11)

Offline

 

#4 2009-11-19 22:56:42

davidcie
Member
Registered: 2008-03-29
Posts: 9

Re: rsync charset problem

One more thought: this time it shouldn't be the client that's at fault, as I get the exact same error when rsyncing from Leopard.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB