On Fri, Jun 21, 2019 at 20:26:26 -0400, Gene Heskett wrote:

> You may have brought something to my attention, I know for a fact that 
> the amanda.conf on this server machine is using amgtar.
> 
> define application-tool app_amgtar {
>      comment "amgtar"
>      plugin  "amgtar"
[...]
> 
> later in that file however,
> 
> define dumptype dt_amgtar {
>         program "APPLICATION"
>         application "app_amgtar"
>         index yes
> }
> 
> define dumptype global {
>     comment "Global definitions"
>     # This is quite useful for setting global parameters, so you don't 
> have
>     # to type them everywhere.  All dumptype definitions in this sample 
> file
>     # do include these definitions, either directly or indirectly.
>     # There's nothing special about the name `global'; if you create any
>     # dumptype that does not contain the word `global' or the name of any
>     # other dumptype that contains it, these definitions won't apply.
>     # Note that these definitions may be overridden in other
>     # dumptypes, if the redefinitions appear *after* the `global'
>     # dumptype name.
>     # You may want to use this for globally enabling or disabling
>     # indexing, recording, etc.  Some examples:
>     index yes
>     program "GNUTAR"
>    auth "bsdtcp"
>        allow-split true

> 
> But as can be seen, the global dumptype never got changed, it still says 
> GNUTAR!!  What is the proper syntax?  I'll change it before the run 
> tonight.                                                                      
>          
> 
> But at the same time I don't know what the "canned at another farm" 
> clients are running. ATM I up to my butt in something else, but I will 
> see about it over the weekend.

If you want to keep the changes as minimal as possible, you might just
want to change the disklist entries for that client machine to use
"dt_amgtar" instead of "global" -- that will leave the other DLEs
unchanged.

In long run if you want to change the global default you would just edit
the global dumptype definition to replace
  program "GNUTAR"
with
  program "APPLICATION"
  application "app_amgtar"

(given that the application "app_amgtar" already exists in your .conf
file).


                                                Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway  -  [email protected]  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239

Reply via email to