Hi,

I would like to use the fssnap facility for snapshots on Solaris and write a
wrapper script. It seems to me that the  paths to tar and dump are hardcoded
to amanda at compile time. 
Is it possible to avoid recompilation of the amanda client by 
 giving another path to tar/dump at runtime?

If not, is it somehow possible to check whether the script was called by
amanda? Perhaps amanda sets some environment variabel so that I can write

  #!/bin/sh
     if [ ! $CALLED_BY_AMANDA ] ; then 
        ufsdump.orig  $*
        exit 
     fi

   .... amanda stuff ...

The script should check if this is the estimate run or the "real" run and
for the real run the device/directory argument has to be changed to
point to the new snapshot device.  So, is it somewhere documented how 
the argument list produced by amanda looks like? 

Any help appreciated!

Thanks, Meik

-- 
Meik Hellmund
Institut fuer Mathematik, Uni Leipzig
e-mail: [EMAIL PROTECTED]
http://www.physik.uni-leipzig.de/~hellmund

Reply via email to