On May 10 2005, Guy Dallaire wrote:
> In the amanda docs, this link is mentionned:
>
> ftp://gandalf.cc.purdue.edu/pub/amanda/gtartest-exclude
>
> It is supposed to lead to some soprt of script that checks if gnutar
> excludes are working the way they should. I cannot connect top the
> site, been trying for 2 days....
Access to the machine has probably been limited to Purdue subnets.
> Anyone has the script and the documentation that comes with it ?
Here's the script. It looks like the documentation is at the top.
-Ben
#!/bin/ksh
###
# Script to test how GNU tar will deal with exclusions.
#
# mkdir /tmp/gtar-test # work area
# cd /tmp/gtar-test
# mkdir testdir # test area to back up
# mkdir testdir/log # create the test cases
# touch testdir/log/do-this-file # ...
# touch testdir/log/skip-this-file # ...
# vi excludes # set up patterns
# Amanda.gtartest | gtar tf - # see what happens
#
# or, you can use this same script as Amanda.gtartest-exclude and pass
# one argument which is the pattern to ignore (ala the exclude option
# in amanda.conf vs exclude-list):
#
# ...
# Amanda.gtartest-exclude ./log/skip-this-file | gtar tf -
###
if [[ ${0##*/} = Amanda.gtartest-exclude ]]
then
exclude="--exclude=$1"
else
exclude="--exclude-from=excludes"
fi
rm -f incrname
touch incrname
$DEBUG ${TAR-gtar} \
--create \
--directory testdir \
--listed-incremental incrname \
--sparse \
--one-file-system \
--ignore-failed-read \
--totals \
--file - \
"$exclude" \
.
Benjamin Lewis <[EMAIL PROTECTED]>
Security Analyst, Identity and Access Management
IT Security and Privacy
Purdue University