You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-backup/amanda/files/amanda-cron

14 lines
419 B

#!/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 )