Home » Infrastructure » Unix » sheduled export backup of all tablespace
sheduled export backup of all tablespace [message #97003] Wed, 17 October 2001 21:57 Go to next message
Sanjay Nag Ray
Messages: 3
Registered: October 2001
Junior Member
I have made a backup script on particular time but how can i make it run on 5.00 p.m and then after 1 hour it will backup in compressed way in tap and make the database status changed after backup.
Please edit my script and send to me..
the prog is written below...

H1=$1
M1=$2
S1=$3
while true
do
H2=$(date +%H)
M2=$(date +%M)
S2=$(date +%S)

if [[ "${H1}" -lt "${H2}" ]]
then
echo " You have given wrong Hour"
exit
else
if [[ "${H1}" -eq "${H2}" ]]
then
if [[ "${M1}" -lt "${M2}" ]]
then
echo "You have given wrong Minutes "
exit
else
if [[ "${M1}" -eq "${M2}" ]]
then
if [[ "${S1}" -lt "${S2}" ]]
then
echo "You have given wrong Seconds"
exit
else
if [[ "${S1}" -eq "${S2}" ]]
then
echo "working the time"
sh sexp
fi
fi
fi
fi
fi
fi
done
echo " Data Export Done "

----------------------------------------------------------------------
Re: sheduled export backup of all tablespace [message #97016 is a reply to message #97003] Tue, 23 October 2001 11:30 Go to previous message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
I did not go through the script. From what I understand, use cron and run stuff at 5:00 and then at 6:00.

----------------------------------------------------------------------
Previous Topic: Formating text using "cut" commond
Next Topic: unix shell
Goto Forum:
  


Current Time: Wed Sep 30 11:56:59 CDT 2020