#!/sbin/sh # ============================================================================ # This script will cpio out all database files to the device # given as Parameter 1 # ============================================================================ # # set -x today_=`date +'%y-%m-%d'`; export today_ # LOG1=/usr/tmp/cpio_${today_}.1st; export LOG1 # PATH=$PATH:/usr/local/bin export PATH exec > /usr/tmp/cpio_${today_}.log 2>&1 # # find \ / \ -depth -print | cpio -ocBv > /dev/rmt/0m 2>> ${LOG1} & first_cpio=$!; export first_cpio # wait $first_cpio if test $? -ne 0; then echo "Full Offline Backup did not complete successfully!" fi echo "Time is: `/bin/date`" echo "Time is: `/bin/date`" echo "Time is: `/bin/date`" >> ${LOG1}