LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2011, 09:30 AM   #1
mgai7755
Member
 
Registered: Apr 2011
Posts: 41

Rep: Reputation: 2
Invalid or incomplete multibyte or wide character ??


Hi,

I'm trying to backup an ext3-formatted disk to an external USB disk, also formatted in ext3.

rsync repeatedly reports those kind of errors : rsync: recv_generator: failed to stat "<filename>" : Invalid or incomplete multibyte or wide character.

Following Google, this is usually related to NTFS-formatted drives but it is not the case here.

A lead to the solution could be that the folders and files being backuped are mapped through smbd. My smbd.conf file contains the following lines regarding charsets :

#Dos charset = 850
#Unix charset = ISO8859-1


Since those lines are commented out, I believe this defaults to UTF-8.

Can anyone help ?

Thanks !

Matthieu
 
Old 05-13-2011, 10:49 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,837

Rep: Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758
Rsync is for network use (the 'r' bit), and imposes a cpu loading. I gather you are working locally. There are backup programs, and good old tar, cp -a & friends to make this easy. Why 'split the atom' with rsync when you can do it a better way?
 
Old 05-14-2011, 04:11 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And on top of what business_kid said I'd like to understand what
your smbd.conf has to do with a local rsync problem?



Cheers,
Tink
 
Old 05-16-2011, 04:42 AM   #4
mgai7755
Member
 
Registered: Apr 2011
Posts: 41

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Tinkster View Post
I'd like to understand what
your smbd.conf has to do with a local rsync problem?

As I said :

Quote:
A lead to the solution could be that the folders and files being backuped are mapped through smbd
So the files stored in those folders are exclusively coming from Windows machines.... Just an idea, if you don't mind...
 
Old 05-16-2011, 04:57 AM   #5
mgai7755
Member
 
Registered: Apr 2011
Posts: 41

Original Poster
Rep: Reputation: 2
Talking

Quote:
Originally Posted by business_kid View Post
Rsync is for network use (the 'r' bit), and imposes a cpu loading. I gather you are working locally. There are backup programs, and good old tar, cp -a & friends to make this easy. Why 'split the atom' with rsync when you can do it a better way?
From the CPU point of vue, this could probably make sense. Appart from that, the backup "script" wasn't written by myself and I believe that it originally was meant for backing up to a networked drive. But in any case, I believe that rsync is still a good option because of its versatility (local use is documented in the man page) and it's performance with big folders.

cp would imply playing with find and timestamps files, and tar would create archives which doesn't help when you need to get a file back rapidly.

That said, anyone feeling like to discuss this "multibyte character" problem ?

Thanks.

Last edited by mgai7755; 05-16-2011 at 09:41 AM.
 
Old 05-16-2011, 05:18 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Does the problem appear for all the files you're trying to transfer or only for some of them (strange characters in their name)? Eventually you can try to convert one of these file names from one encoding to another and see if it is correctly parsed by rsync after the treatment. To do that the convmv command may come in handy, e.g.
Code:
convmv -f utf8 -t iso-8859-1 <filename>
Hope this helps.
 
Old 05-16-2011, 09:39 AM   #7
mgai7755
Member
 
Registered: Apr 2011
Posts: 41

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by colucix View Post
Does the problem appear for all the files you're trying to transfer or only for some of them (strange characters in their name)?
Only some files with (french) accentuated letters. BUT, as a matter of a fact, I tried to replicate today in order to test the command you suggested and... it seems the problem disappeared...

I don't understand, sorry...

Thanks to everyone who tried to help me on this one...

Last edited by mgai7755; 05-17-2011 at 02:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync: "Invalid or incomplete multibyte or wide character (84)" don_wombat_73 Linux - Newbie 4 05-14-2013 02:10 PM
Samba/Kerberos : ads_connect: Invalid or incomplete multibyte or wide character Lordandmaker Linux - Networking 0 04-01-2008 05:03 AM
Mandrake 2006 + msec : Invalid or incomplete multibyte or wide caracter jmcollin92 Linux - Security 2 06-10-2006 06:33 AM
"Invalid or incomplete multibyte.." using cat textfile | mailx recipient@domain pargilo Linux - Software 0 04-01-2006 05:58 AM
Invalid or incomplete multibyte or wide character chanys Linux - General 1 03-13-2003 10:09 PM


All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration