Amanda-Users

Cyrillic support for index files

2006-06-09 04:32:12
Subject: Cyrillic support for index files
From: "Евгений Ю Сосунов" <sosunov AT sib.ancor DOT ru>
To: amanda-users AT amanda DOT org
Date: Fri, 9 Jun 2006 14:22:38 +0700
Good day!

Sorry for my English.

I have installed and configured amanda.

build: VERSION="Amanda-2.4.5"
       BUILT_DATE="Wed Jun 7 16:25:00 NOVST 2006"
       BUILT_MACH="Linux HOME 2.4.26-std-smp-alt13 #1 SMP Sun Nov 13
23:35:06 MSK 2005 i686 unknown unknown GNU/Linux"
       CC="gcc"
       CONFIGURE_COMMAND="'./configure' '--build=i686-alt-linux' '
--host=i686-alt-linux' '--prefix=/usr' '--exec-prefix=/usr' '
--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '
--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '
--libexecdir=/usr/lib' '--localstatedir=/var/lib' '
--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '
--infodir=/usr/share/info' '--without-included-gettext' '--enable-shared' '
--with-index-server=localhost' '--with-gnutar=/bin/tar' '
--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '
--with-smbclient=/usr/bin/smbclient' '--with-db=text' '--with-amandahosts'
'--with-user=amanda' '--with-group=disk' '--with-debugging' '
--libexecdir=/usr/lib/amanda' '--without-bsd-security' '
--program-transform-name=' '--disable-static'"
paths: bindir="/usr/bin" sbindir="/usr/sbin"
       libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
       AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
       CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/"
       RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
       RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
       XFSDUMP="/sbin/xfsdump" XFSRESTORE="/sbin/xfsrestore"
       VXDUMP=UNDEF VXRESTORE=UNDEF
       SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/tar"
       COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
       LPRCMD="/usr/bin/lpr" MAILER="/usr/bin/Mail"
       listed_incr_dir="/var/lib/amanda/gnutar-lists"
defs:  DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
       DEFAULT_TAPE_SERVER="localhost"
       DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
       LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
       AMANDA_DEBUG_DAYS=4 CLIENT_LOGIN="amanda" FORCE_USERID
       HAVE_GZIP COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
       COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"

When I backing up files and folders with russian names, they are backed up.
But I have some trouble with index files. All russian characters look like
/\356\317\327\301\321 \320\301\320\313\301/
/\356\317\327\301\321 \320\301\320\313\301 (2)/
... and e.t.c.

I tried to exec command /bin/tar -tf /tmp/some_tar_whit_russian_names.tar
2>/dev/null | sed -e 's/^\.//'>/tmp/123.txt from amanda in bash. And it
looks fine. When I tried to exec this command (/bin/tar -tf
/tmp/tar_rus.tar 2>/dev/null | sed -e 's/^\.//'>/tmp/123.txt) from crontab
of amanda and have bad results like: /\356\317\327\301\321
\320\301\320\313\301/
/\356\317\327\301\321 \320\301\320\313\301 (2)/
... and e.t.c.

I go next. And find that this depend on ENVIRONMENT Variable "LANG". When i
try to modify crontab for amanda. I add two lines LANG="ru_RU.KOI8-R" and
LANGUAGE="ru_RU.KOI8-R". And command /bin/tar -tf /tmp/tar_rus.tar
2>/dev/null | sed -e 's/^\.//'>/tmp/123.txt running from crontab of amanda
works fine.

After that I modify ENVIRONMENT Variable "LANG" in crontab of amanda user.
But amdump which create index files still not working correctly. And create
index file like /\356\317\327\301\321 \320\301\320\313\301/
/\356\317\327\301\321 \320\301\320\313\301 (2)/
... and e.t.c.

Have you any suggestions how to decide this problem? May be I can set
Variable "LANG" in amdump? How to do this?



<Prev in Thread] Current Thread [Next in Thread>