On 2008-10-13 13:55, Jukka Salmi wrote:
Hello,
while reading amanda.conf(5) I noticed the following comment about the
`include' dumptype option:
All include expressions are expanded by Amanda, concatenated in one
file and passed to GNU-tar as a --files-from argument. They must
start with "./" and contain no other "/".
I've been using include lists for a long time now, but some of them
do contain lines with slashes after the starting `./'; this seems to
work fine, though.
So, why are slashes forbidden?
Amanda needs to pass these strings to the gnutar option "--files-from"
and gnutar does not do globbing expansion on those strings (as opposed to
the --exclude option, where gnutar will do globbing).
Therefor Amanda does the globbing before passing the result of the glob
to gnutar.
And for this globbing to work (and still be efficient), Amanda restricts
itself to the toplevel directory (./some*thing) only.
However, as boundary case, if the path contains more than one slash,
then the loplevel globbing will not work, but Amanda will pass these strings
unmodified to gnutar; and there you can get away with it.
As long as you do not expect that pathnames having more than one slash
will glob correctly, there is no problem.
This dark corner of Amanda will probably change in future releases,
so it's best to not rely on this too much.
--
Paul Bijnens, xplanation Technology Services Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|