I am trying to get my backup script to work with tar on a linux system.
The varialble FILES is where I put a list of files to be backed up but this is not working.
================
here is the ouput produced by the script
==========================
======
BACKUP started at Wed May 28 10:10:44 CDT 2008
Where am I?
/root/logs
tar: Removing leading `/' from member names
/root/logs/files
BACKUP finished at Wed May 28 10:10:49 CDT 2008
==========================
==========
======
here is the script
==========================
==========
======
#!/bin/ksh
# set +xv
# File: /bkup.sh
##########################
##########
##########
##########
##########
#####
#
#
DATE=`date +%m%d%y`
BULOG=/root/logs/bkup_$DAT
E.log
FILES=/root/logs/files
#
########### Start of the script. ##########################
##########
##
echo " BACKUP started at `date`" > $BULOG 2>&1
echo "Where am I?" >>$BULOG
pwd >>$BULOG
find /var/subversion -print |grep -v *.dump |grep -v *.tar > $FILES
find /usr/nagios -print >>$FILES
#
mt -f /dev/st0 rewind
#
tar -cvf /dev/nst0 $FILES >> $BULOG 2>&1
#
mt -f /dev/st0 rewind
#
echo " BACKUP finished at `date`" >> $BULOG 2>&1
==========================
==========
==========
=====
Start Free Trial