Amanda-Users

Re: getting amverify to verify nttar, etc

2003-09-01 03:51:30
Subject: Re: getting amverify to verify nttar, etc
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Kurt Yoder <kylist AT shcorp DOT com>
Date: Mon, 01 Sep 2003 09:43:30 +0200
Kurt Yoder wrote:

How do I get amverify to verify nttar, gtar, etc? I'm attempting to
edit the amverify script to contain this:

if [ X"$TAR" != X"" -a X"$2" = X"$TAR" ]; then
        CMD=$TAR
        ARGS="tf -"
elif [ X"$TAR" != X"" \
        -a X"$SAMBA_CLIENT" != X"" \
        -a X"$2" = X"$SAMBA_CLIENT" ]; then
        CMD=$TAR
        ARGS="tf -"
elif [ X"$TAR" != X"" \
        -a \(
        X`basename $2` = X`basename $TAR` \
        -o X`basename $2` = X"gtar" \
        -o X`basename $2` = X"gnutar" \
        -o X`basename $2` = X"nttar" \) ]; then
        CMD=$TAR
        ARGS="tf -"

However, I still receive messages like "(** Cannot do nttar dumps)".

Is it amverify only that says "Cannot do nttar dumps" or does amcheck
and others complain with similar errormsgs?

> What am I doing wrong? (In fact, echoing the value of $2 to a file
> right above this code fragment doesn't even work, which is confusing
> me)

"doesn't even work"? as emty output? or other error msg?
What if you add as first line, just after the hash-bang

        #!/bin/sh
        echo ARGS: "$@" > /tmp/amverify-args.$$
        # rest of the program.


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



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