Amanda-Users

Re: ANSWER: pre- and post-dump script?

2003-09-19 14:49:19
Subject: Re: ANSWER: pre- and post-dump script?
From: Eric Siegerman <erics AT telepres DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 18 Sep 2003 22:35:19 -0400
On Thu, Sep 18, 2003 at 09:52:32AM -0400, Kurt Yoder wrote:
> 1. compile amanda with tar=/usr/local/bin/tar
> 2. copy or symlink tar to /usr/local/bin/realtar
> 3. create a script /usr/local/bin/tar
> 4. chmod 755 /usr/local/bin/tar

The problem with this is that users typically have /usr/local/bin
in their paths, so now they'll get your script instead of a
vanilla tar command.  Breaking the environment like this is truly
evil; your users will not take it kindly!

Much better would be:
  1. compile amanda with tar=/usr/local/libexec/amandatar (or
     whatever you prefer, as long as it's not both called "tar"
     and in peoples' paths)
  2. leave the real tar well alone!!
  3. create a script /usr/local/libexec/amandatar
  4. chmod 755 /usr/local/libexec/amandatar

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        erics AT telepres DOT com
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
        - Michael Collins, Apollo 11 Command Module Pilot


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