Commands to setup amanda backup system, It has restore facility.

Installation

apt-get install amanda-server amanda-client

Setup disk tapes

PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH

TAPE_HOME=/var/backups/amanda-daily

for n in 1 2 3 4 5 6 7 8 9 10 11 12; do
    mkdir $TAPE_HOME/slot${n}
done

touch $TAPE_HOME/info
ln -s $TAPE_HOME/slot1 $TAPE_HOME/data

for n in 1 2 3 4 5 6 7 8 9 10 11 12; do
    amlabel DailySet1 DailySet1${n} slot ${n}
done

On CLIENT, /etc/services

amanda      10080/udp
amandaidx   10082/tcp
amidxtape   10083/tcp

/etc/hosts.allow

# web1, web2, mail server
amandaidx: 10.10.10.1 10.10.10.2 10.10.10.12
amidxtape: 10.10.10.1 10.10.10.2 10.10.10.12
amanda:    10.10.10.1 10.10.10.2 10.10.10.12

/etc/hosts.deny:

amandaidx: ALL
amidxtape: ALL
amanda: ALL