MySQL Forums
Forum List  »  MySQL Administrator

Backu scripts on windows
Posted by: Naveen kumar
Date: October 03, 2006 08:57AM

Hi all,

I am writing a batch program to automate data base backup on windows server 2003.I am able to use the db commandline but I am unaware of using those commands in a batch program. I have written a shell script on linux for the same.

medium_cmd="medium_put $SID"_"$SUFFIX $SID"_"$SUFFIX.DB FILE DATA"
echo $medium_cmd
backup_cmd="backup_start $SID"_"$SUFFIX DATA"
echo $backup_cmd
echo "executing complete data backup..."
_o=`cat <<EOF | dbmcli -d $SID -u control,control -uUTL
db_admin
util_connect
$medium_cmd
$backup_cmd
db_online
EOF`


where certain parameters like SUFFIX and SID are taken form the user and I want the same kind of code to be written on Windows using batch programming.Can you please help me in doing the same.

Options: ReplyQuote


Subject
Written By
Posted
Backu scripts on windows
October 03, 2006 08:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.