On Friday 21 June 2019 22:14:20 Nathan Stratton Treadway wrote:
> 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).
>
Fails amcheck with
amanda@coyote:/root$ /usr/local/sbin/amcheck Daily
'/usr/local/etc/amanda/Daily/amanda.conf', line 487: application name expected:
0 12
'/usr/local/etc/amanda/Daily/amanda.conf', line 487: end of line is expected
at line 217 in amanda.conf:
define application-tool app_amgtar {
comment "amgtar"
plugin "amgtar"
#property "GNUTAR-PATH" "/path/to/gtar"
#property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir"
#default from gnutar_list_dir setting in amanda-client.conf
property "ONE-FILE-SYSTEM" "yes" #use '--one-file-system' option
#property "SPARSE" "yes" #use '--sparse' option
#property "ATIME-PRESERVE" "yes" #use '--atime-preserve=system' option
property "CHECK-DEVICE" "no" #use '--no-check-device' if set to "no"
property "IGNORE" ": socket ignored$"
# property append "IGNORE" ": Directory is new$"
# property append "IGNORE" ": Directory has been renamed"
property append "IGNORE" "file changed as we read it$"
}
Then at line 463:
define dumptype dt_amgtar {
program "APPLICATION"
application "app_amgtar"
index yes
}
And:
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
program "APPLICATION"
application = "app_amgtar" <--line 487
# record no
# splitsize 2000m
## split_diskbuffer "/dumps"
# fallback_splitsize 64m
# estimate calcsize
}
# end of "global"
Clearly, one of these is superfoulous(sp?) <_damnit I wish we had a spellchecker
with a real dictionary.
This amanda.conf has never been replaced, just edited as time & tech went by,
so I expect it does contain errors. Point them out please.
Thanks Nathan
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>