netman.qos AT free DOT fr wrote:
Sorry for my (very) poor language
:-) no you're making the language richer, just as me :-)
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.
--
Paul Bijnens, Xplanation 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, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|