MySQL Forums
Forum List  »  Backup

Re: create dump without output console
Posted by: ENNAJIHI Rachid
Date: February 07, 2012 11:43PM

thank you all,

Here is my final script, it works fine

#!/bin/bash
LOG_FILE=/dump/logs/`date +%Y-%m-%d-%H%M`.log
HOST=192.168.50.191
mysql -h $HOST -u *** -p*** baseName < baseRestore.sql 2>> $LOG_FILE

Options: ReplyQuote


Subject
Views
Written By
Posted
3325
February 01, 2012 07:29AM
1329
February 01, 2012 10:18AM
2752
February 03, 2012 04:18AM
1377
February 03, 2012 10:58AM
Re: create dump without output console
1470
February 07, 2012 11:43PM


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.