> > I want backup only .xml .pl .pm and .tgz in one directory and his sub dir.
> > Unfortunatly, i have big difficult to read documentation.
> > Can you help me, with a little example ?
>
> Your problem is not "directly" supported by amanda, but there is
> a workaround with the "include list" directive of a dumptype,
> together with a little script that fills that file.
>
> Suppose the directory you want in on client MyClient and is named
> /my/project.
> On that client we run a program (quick draft, untested):
>
> #!/bin/sh
> cd /my/project
> find . -xdev \( \
> -name '*.xml' \
> -o -name '*.pl' \
> -o -name '*.pm' \
> -o -name '*.tgz" \
> \) -print > amanda-include-only
>
> In amanda we use the following disklist entry:
>
> MyClient /my/project {
> user-tar
> include list "amanda-include-only"
> }
>
> You can schedule the program that creates the include list a few
> minutes before the backup begins, or, better yet, use a wrapper round
> gnutar that create the list on the fly, and then runs the real gnutar.
Thanks a lot Mr Bijnens !
I haven't problems for schedule your script.
But, your answer push a new question : What are a wrapper ? and how to
use this in our case ?
I know, i abuse a lot ;) but i reply at amanda-users list to, for the
pedagogic aspect of your answer are archived.
(in french: Je sais, j'abuse, mais je repond aussi sur amanda-users list
pour que votre reponse soit archivée, vu son caractere pedagogique.)
Thanks again
|