Re: include in DLE question
2009-09-29 18:28:59
McGraw, Robert P schrieb:
> zorn /export/users-r /export/fssnap/users {
> users-tar
> include "./rabridge" "./ram" "./rcp" "./reden" "./rferrazd"
> "./rganapat" "./rganesh" "./rhkenney" "./rhora" "./rkaufman" "./rkhosla"
> "./rlalvare" "./rliu" "./rmcgraw" "./rnagpal" "./roeckner" "./rogersb"
> "./rogersbj" "./rpankant" "./rqian" "./rroames" "./rt" "./rurban"
> "./rustamov"
> }
>
> The include is all one line.
>
> Is this valid syntax?
>
> Can you have multiple include lines?
AFAIK you could use:
zorn /export/users-r /export/fssnap/users {
users-tar
include "./rabridge"
include append "./ram"
include append "./rcp"
include append "./reden"
[...]
}
or
zorn /export/users-r /export/fssnap/users {
users-tar
include list "/export/fssnap/users/users_to_backup"
}
with
# cat /export/fssnap/users/users_to_backup
/export/fssnap/users/ram
/export/fssnap/users/rcp
/export/fssnap/users/reden
[...]
-->
See
http://wiki.zmanda.com/index.php/Exclude_and_include_lists
and
http://wiki.zmanda.com/man/2.6.1/amanda.conf.5.html
(search for "include [ list|file ]" ... )
Stefan
|
|
|