* Dirk-Willem van Gulik <[email protected]> [20160224 13:44]:
> Is there any way one could pass arguments to gtar ?
Yes, read the manpage amanda-applications and the section on application
in man amanda.conf.
In a nutshell, define an application, say "app-amgtar" that specifies
some properties, then reference it in a dumptype and finally use it the
disklist file for your DLEs.
For example you could put the following in amanda.conf (or use 'include'
stanzas if you prefer)
define application-tool "app-amgtar" {
plugin "amgtar"
property append "IGNORE" ": file changed as we read it$"
property append "IGNORE" ": File removed before we read it$"
property append "IGNORE" ": socket ignored$"
}
Add properties as you fancy, those are just examples.
Then define a dumptype that uses this application
define dumptype "app-amgtar-span" {
"global"
program "APPLICATION"
application "app-amgtar"
priority high
allow-split
holdingdisk required
compress none
comment "tape-spanning user partitions dumped with amgtar"
}
Finally, use it in your disklist for an amanda client:
amanda-client /client-dle app-amgtar-span
hth,
jf
>
> I.e. along the lines of below ? As to get some level of control over the
> ‘STRANGE’ warnings/output ?
>
> Or does this always mean the use of amgtar ?
>
> Dw.
>
> define dumptype root-tar {
> ...
> program "GNUTAR"
> property "COMMAND-OPTIONS" "--warning" "no-xdev”
> ...
> }
--
Jean-Francois Malouin | IT Operations and Infrastructure
McConnell Brain Imaging Centre | MNI | McGill University