Bareos Database Encoding

519 views
Skip to first unread message

John Bolt

unread,
Jan 10, 2015, 4:35:40 PM1/10/15
to bareos...@googlegroups.com
The Bareos create_bareos_database script creates the database using the SQL_ASCII encoding.

Will Bareos be able to backup and restore file names with weird letters like ü,ç,ã etc?

Shouldn't we use Unicode (UTF8) for languages as Brazilian Portuguese for example?

lst_...@kwsoft.de

unread,
Jan 13, 2015, 11:24:40 AM1/13/15
to bareos...@googlegroups.com

Zitat von John Bolt <job...@gmail.com>:
To my knowledge the problem arises from the fact that it isn't clear
how to reliable detect what the real encoding of filenames is on any
supported OS. With this it is impossible to convert to UTF-8 and
reconvert at restore time without possibly trashing filenames. So
Bareos and Bacula BTW store the filenames as a sequence of bytes
*without* encoding at all with the intention to simply restore them
as-is. That's why ASCII is used to tell the DB to do nothing to check
if it is a valid charset.

Do you actually have a problem with filenames or was it just suspected
to be a problem?

Regards

Andreas


John Bolt

unread,
Jan 14, 2015, 11:34:53 AM1/14/15
to bareos...@googlegroups.com
Thanks for the Answer.
I am starting to test Bareos and PostgreSQL suggests it should be UTF8.
However, I have found a single entry in the bareos manual (http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-30600029.1.2) Chapter 29.1.2 Manual Configuration that states:
"The encoding of the bareos database must be SQL_ASCII. The command create_bareos_database automatically creates the database with this encoding. This can be verified by the command psql -l, which shows information about existing databases"

So as you just clearly explained. it is correct to use the SQL_ASCII.

Thanks

Rinat Camal

unread,
Aug 19, 2018, 12:19:57 AM8/19/18
to bareos-users
Hello!
unfortunately this is a problem.

When I try to find specific file to restore - I cann't.
The name in database is some strange code. bconsole didn't accepted path to this file, and Bareos-webui gives error "Oops, something went wrong, probably too many files." BAT crashes
Reply all
Reply to author
Forward
0 new messages