Public feed #600844

Mine

public text v1 · immutable
Raw Edit
·published 2007-07-03 03:51 UTC
rendered paste body
#!/bin/sh
clear

BACKUP_TO_BERYL="NO"
BACKUP_TO_BASALT="NO"
BACKUP_TO_BORAX="NO"
BACKUP_FILES=""

echo "Daily system backup started"

# Umount all NAS backup shares (this is done in case 1 is physically removed and not unmounted)
echo "Unmounting all NAS drives..."
umount /mnt/beryl-backup > /dev/null 2>&1
umount /mnt/basalt-backup > /dev/null 2>&1
umount /mnt/borax-backup > /dev/null 2>&1

# Mount each NAS drive as available
echo "Attempting to mount //BERYL..."
if mount /mnt/beryl-backup; then BACKUP_TO_BERYL="YES"; else echo "//BERYL is currently offline"; fi
echo "Attempting to mount //BASALT..."
if mount /mnt/basalt-backup; then BACKUP_TO_BASALT="YES"; else echo "//BASALT is currently offline"; fi
echo "Attempting to mount //BORAX..."
if mount /mnt/borax-backup; then BACKUP_TO_BORAX="YES"; else echo "//BORAX is currently offline"; fi

# Call each backup job and copy the resulting backup file to $NAS_BACKUP_LOCATION

echo "Running webroot backup..."
/etc/backup/scripts/webroot-backup-all.sh