Amanda-Users

Re: pre- and post-dump script?

2003-08-25 14:54:05
Subject: Re: pre- and post-dump script?
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 25 Aug 2003 14:38:59 -0400
On Mon, Aug 25, 2003 at 09:31:00AM -0400, Kurt Yoder wrote:
> 
> Jon LaBadie said:
> > On Fri, Aug 22, 2003 at 02:33:59PM -0400, Kurt Yoder wrote:
> >> Thanks for instrucs; I'll try them out.
> >>
> >> Jon LaBadie said:
> >> > On my system, amanda installs under /usr/local and puts
> >> > some executables in "libexec" so I copy my gnutar to that
> >> > directory and name it "amgtar".  Then my configure options
> >> > include "--with-guntar=/usr/local/libexec/amgtar".
> >>
> >> Do you do amverify also? Does it complain about "amgtar" and
> >> refuse
> >> to verify it?
> >
> > No, I don't amverify (bad Jon!)
> >
> > But I don't see why you think it might be a problem.
> 
> For me, amverify refuses to run a verify on tar backups made with
> any program that isn't called tar. For instance, I installed a
> custom-compiled tar on a freebsd machine and called it gtar.
> Amverify thinks it doesn't know how to handle gtar, even though gtar
> is gnu tar 1.13.25. I even put some symlinks on the backup server;
> /usr/local/bin/gtar points to /bin/tar, but this didn't help either.


Interesting.  Of course as I do not amverify I would not have
encountered that problem.  I looked at amverify.  It is a shell
script.  In there is a section:

    if [ X"$1" = X"program" -a X"$2" != X"" ]; then
        if [ 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"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 -"

Which on first inspection would suggest there is a limitation.
I'll see if I can look at this closer in the future.  Now I'm
taking down my system and updating the OS.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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