[SunHELP] secure remote backup - HELP

Gary.Siao at bmo.com Gary.Siao at bmo.com
Tue Aug 3 10:50:06 CDT 2004


friends

i am trying to do a secure remote backup using the script below but getting
an error "cut : invalid delimeter"... any ideas ???

#!/bin/ksh
##
## This will backup both UFS & VXFS to tape - garysiao.101201
##
LOGFILE=/var/adm/backup_log/`hostname`"_backup."`date +%m%d%y`
# mt -f /dev/rmt/0n eom

for x in `grep -v ^# /etc/vfstab | grep ufs | cut  -d"  " -f1`
do
/usr/sbin/ufsdump 0ucf /dev/rmt/0n $x >> $LOGFILE 2>&1
done

for x in `grep -v ^# /etc/vfstab | grep vxfs | cut -d"  " -f1`
do
/usr/sbin/vxdump 0uf /dev/rmt/0n $x >> $LOGFILE 2>&1
done


thanks !
====================================================
Gary Siao
Systems Analyst
Technology & Solutions - Open Systems Services
BMO Financial Group
T : 416.502.5906   F : 416.502.7038
E : Gary.Siao at bmo.com
====================================================



More information about the SunHELP mailing list