Amanda-Users

last (I hope) chg-zd-mtx question

2003-08-07 09:14:40
Subject: last (I hope) chg-zd-mtx question
From: "Bruntel, Mitchell L" <mbruntel AT att DOT com>
To: "Jay Lessert" <jayl AT accelerant DOT net>
Date: Thu, 7 Aug 2003 08:12:09 -0500
--Jay said---> ...In addition, you'll be less likely
to get surprised down the road if you run the chg-zd-mtx installed
in libexec.  Your copy in DailySet1 won't be updated (by) 'make install'.

Thanks again Jay.
So you're saying that since the chg-zd-mtx in libexec is the one that would be 
updated when I 
upgrade and do a Make Install,  THAT is the one I should modify to make my 
"config file"?

That's the part that confuses me.
So
 We have a chg-zd-mtx in ../../libexec/chg-zd-mtx  
        that is the file normally run by amanda, 
and 
we have the configuration version which is ../configname/chg-zd-mtx.conf  
        (in this case /usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf  

                which as an aside DOES not get called chg-zd-mtx.conf (but just 
...mtx) 
                in the amanda.conf line that calls the changerfile variable.)

And you're saying that when I make a new version the make install will NOT 
overwrite the one in
        /usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf  ... which makes 
sense...

But then...That isn't the one that actually executes anyway... 
NO NO NO. I've confused myself again.

        The Configuration for DailySet1 goes in 
        /usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf 

        But (In my case??!  I also have a file in my config directory called 
        chg-zd-mtx.conf, as WELL as the executable in the libexec directory.
(directory shows:
-rwxr-xr-x   1 amanda   operator   36419 Aug  6 15:58 
/usr/local/etc/amanda/DailySet1/chg-zd-mtx
-rw-r--r--   1 amanda   operator    1631 Aug  6 16:23 
/usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf
-rwxr-xr-x   1 amanda   operator   36526 Jul 10 12:34 
/usr/local/libexec/chg-zd-mtx

Note they AREN't the same (apparently I added a comment to the one in my config 
directory) 

So, are we saying :
        that the chg-zd-mtx in the CONFIG directory should NOT exist?  or what 
exactly are we saying here? 
(HELP?) 


OK: Question in plain English (I hope):
-----
a) does a file named chg-zd-mtx need to exist in the CONFIG directory (I am 
guessing answer is NO...)
b) should we have to edit the chg-zd-mtx file (except to change the stuff in 
beginning of the file as configuration parameters?
c) IF we DO have to edit the chg-zd-mtx file (not the chg-zd-mtx.conf file in 
DailySet1) where should we keep it so that future changes can 
        be accomadated if we need to do another make install?
c1 IF the ONLY changes to the file would be to copy to create a new .conf file 
in the config(DAILYSET1) directory, then D) seems to makes sense.

d) for future versions.  Can this be modified so that a sample chg-zd-mtx.conf 
file is included that DOES NOT contain the shell script stuff?
   It seems very confusing.

e) For Newbies (PAY ATTENTION NOW)  interested in using a changer file that 
ISN'T standard*.   Would the procedure to follow be:
        1) locate the changer file desired (for example: chg-zd-mtx) from the 
changer-src directory in the distribution, 
        2) Copy that file to /usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf
                (that's CONFIG Directory/changername with a .conf at the end of 
it) 

                (EXAMPLE:  COPY  /usr/local/libexec/chg-zd-mtx 
/usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf
        3) and simply change the variables in the beginning of the file, and 
STOP editing the file when it says
                
################################################################################
                # No user-level customization should be required beyond this 
point.
                
################################################################################
        (and then delete all lines after that in the 
/usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf CONFIG file



Thanks
Mitch  


* Never mind.  Amanda isn't Standard.  Anyone wishing to use it is going to go 
thru this to connect their robot!


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