On 5 Jan 2008, at 16:03, Dan Langille wrote: > > I have confirmed a bug: the job silently fails without reporting the > following error, which is logged in /var/log/messages: > > ERROR: invalid byte sequence for encoding "UTF8": 0x9f > HINT: This error can also happen if the byte sequence does not > match the encoding expected by the server is controlled by > "client_encoding". > > No entries are added to the file table. The error should be logged > and the backup at least not flagged as OK. > > As for your situation, there are two questions remaining: > > - is the file name valid UTF8? > - if it is, I wonder if we need to do a "set client_encoding > 'utf-8'" first
The filename is not valid UTF8: it is MacRoman created by an old version of Netatalk which I no longer have in operation: modern Netatalks create UTF8 filenames which cause no problems. As a user, I would prefer Bacula to set client_encoding automatically from the encoding of the SQL database and to flag filenames which do not conform to that encoding. Perhaps the user should be allowed to decide whether the flag causes a warning (i.e. the file is skipped) or a fatal error (i.e. Bacula stops) with a message text along the lines of "filename encoding should be XXX but isn't - please fix the filename or change the encoding of the Bacula database". However, I think there should also be an optional setting specified which switches off all checking of filename conformity (SQL_ASCII, as mentioned by Eric, perhaps?), which could be the recommended default. Bacula should back up anything, I think, and leave the checking of the filename encoding to other tools. Thanks for your help, Dan and Eric. Steve ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users