summaryrefslogtreecommitdiff
blob: a5524dc2e3a18e07080eb364319db201764f1852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# This is a sample cron job to kick off backups with amanda.

# Run the tape tests on DailySet first, and if ok, then kick off backups
# Mail error reports to root

# Ensure TAPE is set to your tape drive for mt to work, ie. TAPE="/dev/st0"

ADMIN_EMAIL="root@localhost"

/usr/sbin/amcheck -t -m -M"${ADMIN_EMAIL}" __AMANDA_CONFIG_NAME__ && \
( /usr/sbin/amdump __AMANDA_CONFIG_NAME__ ; /usr/sbin/mt eject )