[plug] script problem
Jon L. miller
jlmiller at mmtnetworks.com.au
Fri Jul 15 20:44:02 WST 2005
Having a problem with this script. Keep getting an error when I run it
stating:
/backup.sh: line 27: syntax error near unexpected token `tar_verify'
#!/bin/bash
# was !/bin/sh
# backup.sh - Backup control script
#
# Usage: backup.sh LEVEL
#
# where LEVEL = 0, 1
#
# Variables
EMAILTO=" jlmiller at mmtnetworks.com.au"
DESTFILE="/dev/st0"
BACKUPFILES="/etc"
BACKUPDIR="${HOME}/backup"
#LEVEL="${1}"
LEVEL=0
# Load backup functions
cd ${BACKUPDIR}
## read in file with functions
/backup-functions
# run the backup from the backup-functions file
tar_backup ()
# Test the backup for errors
tar_verify ()
## While device is in for repair, copy backup file to another server
# scp $DESTFILE 192.168.1.1:/db
# Email the backup report to admin
mail_report ()
# Done
exit 0
Thanks
--
-------------------------------------
Jon L. Miller, MCNE CNS LSP CCNA
MMT Networks Pty Ltd
Perth, Western Australia
email: jlmiller at mmtnetworks.com.au
web: www.mmtnetworks.com.au
Novell Gold Partner
Sophos Reseller
CA Reseller
More information about the plug
mailing list