Amanda-Users

Re: amanda tar and star again

2005-01-27 11:43:27
Subject: Re: amanda tar and star again
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org, Claus.Rosenberger AT rocnet DOT de
Date: Thu, 27 Jan 2005 11:30:48 -0500
On Thursday 27 January 2005 08:54, Claus Rosenberger wrote:
>hi,
>
>it would be nice if amanda will be packaged with a compiled in
> wrapper tar script instead of running tar from /usr/bin. perhaps
> it's possible to run /usr/lib/amanda/tar-wrapper wich is calling
> /usr/bin/tar again. that script could be changed then to call
> /usr/bin/star.
>
If building it from scratch, this is no problem Claus.  You just use a 
line in your config script that says 
--with-gnutar=your-wrapper-script, just like in this script I use:

#!/bin/sh
# since I'm always forgetting to su amanda...
if [ `whoami` == 'root' ]; then
 echo
 echo "!!!!!!!!!!!! Warning !!!!!!!!!!!!"
 echo "Amanda needs to be configured and built by the user amanda,"
 echo "but must be installed by user root."
 echo
 exit 1
fi
make clean
rm -f config.status config.cache
./configure --with-user=amanda \
 --with-group=disk \
 --with-owner=amanda \
 --with-gnu-ld \
 --prefix=/usr/local \
 --with-tapedev="FILE:/amandatapes" \
 --with-debugging=/tmp/amanda-dbg/ \
 --with-tape-server=coyote \
 --with-amandahosts \
 --with-configdir=/usr/local/etc/amanda \
 --with-config=Daily \
 --with-gnutar=/usr/local/bin/tar

make
---------------------
One could even point it at star itself unless you need to parse the 
command line and adjust it for star in your wrapper.
That last line is how I converted mine from using /bin/gtar to using a 
self-compiled version of tar-1.15-1 for testing.  It apparently works 
just fine.

>regards
>
>claus

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.32% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.

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