Bacula-users

Re: [Bacula-users] bacula won't backup files with apostrophes

2010-04-13 04:33:07
Subject: Re: [Bacula-users] bacula won't backup files with apostrophes
From: Craig Ringer <craig AT postnewspapers.com DOT au>
To: Mark Coolen <mark.coolen AT gmail DOT com>
Date: Tue, 13 Apr 2010 16:30:48 +0800
On 13/04/10 02:05, Mark Coolen wrote:
> Hi;
> I'm backing up files from a Windows share connecting with cifs (samba)
> using autofs. I'm getting an error with files with apostrophes that the
> files doesn't exist and it lists the file path with a ? instead of the
> apostrophe.

First: Perhaps it'd be easier to just run a bacula-fd on the Windows 
system, bypassing this issue and giving you reliable backup of files 
that're open or being written to during the backup (using VSS) ?

If for some reason you can't do that, read on.

This sounds like a character encoding problem. Are they regular ASCII 
apostrophes, or are they 'curly' apostrophes (proper inverted commas) ?

If you create a file name with other unicode characters, is it visible 
or does it show up with "???" too? Try a filename like:

    fileåæïöû

( this email is in utf-8, so if you're using a brain-dead mail client 
that doesn't recognise the encoding declared in the header you might 
have to save it and open it as a utf-8 text file in a text editor to see 
the above ).

or:

    立法院上午

(random text from news.google.com.tw)


If it turns out to be an encoding issue, you'll need to set the 
`iocharset' mount option for mount.cifs correctly. See "man mount.cifs" 
and the output of the "locale" command.

If your local encoding isn't utf-8 you won't be able to reliably back up 
all possible files that may appear on a Windows system, as some 
characters on the remote system will lack local equivalents.


--
Craig Ringer

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users