Alan Pham wrote:
>
> Hi,
>
> How can I exclude a directory (or directories) in a diskdev?
> For example, in disk list I have the following entry:
>
> foohost c0t0d0s7
>
> which is mounted on /export.
>
> I have the following directories under /export:
> /export/home
> /export/scratch
> /export/slicer
>
> How can I exclude /export/scratch? This is a temp space to dump
> large output files from programs.
Somehow, I just got this message from the listserver.
I don't claim that this is the best way to do this, but it works for me.
In my amanda.conf, my dumptype "root-tar" looks like this:
=====
define dumptype root-tar {
global
program "GNUTAR"
comment "root partitions dumped with tar"
compress none
index
exclude list "amanda/.amanda.excludes"
priority low
}
=====
Most of the other tar-based dumptypes include root-tar, so this works
for all of them. The "exclude list" line tells amanda to look in the
file "amanda/.amanda.excludes" for a list of files to exclude. If I'm
backing up the /usr directory, for instance, the exclude file will be
/usr/amanda/.amanda.excludes.
In your case, given the dumptype definition above, you would create a
file called /export/amanda/.amanda.excludes with the following contents:
=====
./home/*
./scratch/*
./slicer/*
=====
Again, it works for me. If it doesn't work for you, let me know and
I'll dig a little more.
John
--
John Price *** ** ** *** [EMAIL PROTECTED]
Where there is no solution, there is no problem.
-- John G. Price (my father), ca. 1975.