Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Question about BACKUP-script
Hi there !!
I got a little question;
My pruduction-server has been installed by another company, and i only started working with it since 3 months ago.. They also wrote a backup-script for oracle and unix. I have NO idea if it's a good backup it's doing, so could you smart guys look into this to see if it's O.K. ??? Thanx !!!
ViC
The backup-script;
#!/bin/sh # # /etc/do_backup - Make a backup #
cd /
echo
"===========================================================================" > $TMPLOG
"===========================================================================" >> $TMPLOG
echo "------------------------------------------------------" >> $TMPLOG echo " ==> NOW STARTING ORACLE EXPORT" >> $TMPLOGsu - oracle8 -c "exp system/manager FILE=/oracle/daily_export.dmp OWNER=edge
echo "------------------------------------------------------" >> $TMPLOG echo " ==> NOW STARTING UNIX BACKUP" >> $TMPLOG tar cvf /dev/rmt0 . > /dev/null 2>> $TMPLOG echo " ==> FINISHED UNIX BACKUP `date +'%a %d-%b-%y %H:%M'`" >>$TMPLOG # Yep, device-files aren't backupped !
# Eject the tape
mt offline
# Change backuplog owner
chown edge:edge $BACKUPLOG
# EOF Received on Thu Apr 06 2000 - 00:00:00 CDT