Hi,

[EMAIL PROTECTED] wrote:

> I'm going to deploy AMANDA as a backup system.
> However, I'm in doubt some parts in disklist file
> What should it be in the file if....
> 
> - I want backup only index.html in every user's home dir
>   /home/*/htdocs/index.html
> - I want backup only all file have .pl extension
>  /htdocs/*.pl
> - I want backup every file whose name led by phplib
>  /usr/local/apache/phplib*
> - I want backup only shadow file in /etc
>  /etc/shadow

Amanda really doesn't work that way.  It is intended to back up whole 
filesystems rather than selected files througout the filesystem.  It is
possible to exclude files but I think you'd have a tough time writing
exclusion rules that do what you want (exlude all but certain filenames).

Instead, you might consider writing a short script that went out and found 
the files you want and copied them to one (perhaps very small) filesystem.
You could then start your script sometime before the Amanda run is scheduled
and point Amanda at your special filesystem.

Another option is to use a "GNUTAR wrapper" script that pretends to be GNU 
tar to Amanda but really does something of your own devising.  Perhaps it
could run GNU tar with a list of filenames generated by "find". John Jackson
has an example GNUTAR wrapper script here:

        ftp://gandalf.cc.purdue.edu/pub/amanda/gtar-wrapper.README
        ftp://gandalf.cc.purdue.edu/pub/amanda/gtar-wrapper.ksh

I hope this helps,

-Ben

-- 
Benjamin Lewis                        Thank goodness modern convenience is a 
Database Analyst/Programmer                  thing of the remote future.
Purdue University Computing Center                  -- Pogo, by Walt Kelly
[EMAIL PROTECTED]                 


Reply via email to