/usr/share/aide/config/aide/aide.conf.d/31_aide_amanda-server is in aide-common 0.16~a2.git20130520-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | #!/bin/bash
if ! [ -d /etc/amanda ]; then
exit 0
fi
for configfile in $(find /etc/amanda -name amanda.conf); do
config="$(dirname $configfile)"
cd $config
CONF="${config##*/}"
AMANDA_TAPEDEV="$(amgetconf $CONF tapedev)"
AMANDA_TAPEDEV="${AMANDA_TAPEDEV#file:}"
if [ -d "$AMANDA_TAPEDEV" ]; then
echo "@@define AMANDA_TAPEDEV $AMANDA_TAPEDEV"
for slot in $(find $AMANDA_TAPEDEV -type d -regex '.*/slot[0-9]+' -printf "%P\n"); do
if [ -f "disklist" ]; then
while read host dev rest; do
if echo $host | grep -q '^\(#.*\)\?$'; then continue; fi
dev="$(echo $dev | sed 's|/|_|g')"
echo "!@@{AMANDA_TAPEDEV}/$slot/[0-9]{5}[-\.]$host\.$dev\.[0123]$"
done < disklist
fi
cat <<EOF
@@{AMANDA_TAPEDEV}/$slot/00000[-\.]$CONF-$(printf "%03d" ${slot#slot})$ VarFile
!@@{AMANDA_TAPEDEV}/$slot/[0-9]{5}[-\.]TAPEEND$
@@{AMANDA_TAPEDEV}/$slot$ VarDir
EOF
done
cat <<EOF
@@{AMANDA_TAPEDEV}/(data|info)$ VarFile
@@{AMANDA_TAPEDEV}$ VarDir
EOF
fi
AMANDA_LOGDIR="$(amgetconf $CONF logdir)"
if [ -n "$AMANDA_LOGDIR" ]; then
cat <<EOF
@@define AMANDA_LOGDIR $AMANDA_LOGDIR
@@{AMANDA_LOGDIR}/log\.@@{YEAR4D}[0-9]{4}\.0$ LowDELog
@@{AMANDA_LOGDIR}/oldlog/log\.@@{YEAR4D}[0-9]{4}\.0$ SerMemberDELog
@@{AMANDA_LOGDIR}/amdump\.1$ LoSerMemberLog
@@{AMANDA_LOGDIR}/amdump\.[2-8]$ SerMemberLog
@@{AMANDA_LOGDIR}/amdump\.9$ HiSerMemberLog
@@{AMANDA_LOGDIR}(/oldlog)?$ VarDir
EOF
fi
AMANDA_INDEXDIR="$(amgetconf $CONF indexdir)"
if [ -n "$AMANDA_INDEXDIR" ]; then
echo "@@define AMANDA_INDEXDIR $AMANDA_INDEXDIR"
if [ -f "disklist" ]; then
while read host dev rest; do
if echo $host | grep -q '^\(#.*\)\?$'; then continue; fi
dev="$(echo $dev | sed 's|/|_|g')"
echo "!@@{AMANDA_INDEXDIR}/$host/$dev/@@{YEAR4D}[0-9]{4}_[0123]\.gz$"
echo "@@{AMANDA_INDEXDIR}/$host/$dev$ VarDir"
done < disklist
fi
fi
AMANDA_CHANGERFILE="$(amgetconf $CONF changerfile)"
AMANDA_CHANGERDIR="${AMANDA_CHANGERFILE%/changer}"
if [ -n "$AMANDA_CHANGERDIR" ]; then
echo "@@define AMANDA_CHANGERDIR $AMANDA_CHANGERDIR"
echo "@@{AMANDA_CHANGERDIR}/(changer-(access|clean|slot)|tapelist(\.yesterday)?)$ VarFile"
echo "@@{AMANDA_CHANGERDIR}$ VarDir"
fi
AMANDA_INFOFILE="$(amgetconf $CONF infofile)"
if [ -n "$AMANDA_INFOFILE" ]; then
echo "@@define AMANDA_INFOFILE $AMANDA_INFOFILE"
if [ -f "disklist" ]; then
while read host dev rest; do
if echo $host | grep -q '^\(#.*\)\?$'; then continue; fi
dev="$(echo $dev | sed 's|/|_|g')"
echo "@@{AMANDA_INFOFILE}/$host/$dev/info$ VarFile"
echo "@@{AMANDA_INFOFILE}/$host/$dev$ VarDir"
done < disklist
fi
fi
# this is hardcoded since amgetconf refuses to deliver diskdir
AMANDA_HOLDING="/srv/amanda/holding"
if [ -n "$AMANDA_HOLDING" ]; then
echo "$AMANDA_HOLDING$ VarDir"
fi
echo "@@define AMANDALOG /var/log/amanda/server/$CONF"
cat <<EOF
!@@{AMANDALOG}/(amcheck|amlogroll|amreport|amtrm(idx|log)|chunker|driver|dumper|planner|taper)\.@@{YEAR4D}[0-9]{10}\.debug$
!@@{AMANDALOG}/(chunker|dumper)\.@@{YEAR4D}[0-9]{13}\.debug$
@@{AMANDALOG}$ VarDir
/var/log/amanda/server$ VarDir
EOF
done
cat <<EOF
@@define AMANDALOG /var/log/amanda/amandad
!@@{AMANDALOG}/(amandad)\.@@{YEAR4D}[0-9]{10}\.debug$
@@{AMANDALOG}$ VarDir
/tmp/amanda$ VarDir
EOF
#cat <<EOF
#!@@{AMANDATMP}/(amandad|amcheck|amtrm(idx|log)|killpgrp|selfcheck|sendbackup|sendsize)\.@@{YEAR4D}[0-9]{10}\.debug$
#@@{AMANDATMP}$ RamdiskData-Size
#/var/lib/dumpdates$ VarFile
#EOF
|