MySQL Forums
Forum List  »  MyISAM

Re: backing up 55GB myisam database
Posted by: Benny Pei
Date: November 11, 2005 11:02AM

I got like "synatx error" during a restore. (Sorry I cannot be more specific because the log was removed) It was a mysqldump piped to a compress. It worked fine with a small database.

Here is the piece of code that does the mysqldump.

--- cut here ---
comp() {
if [ -p $1 ]
then
rm $1
fi
mknod $1 p
compress < $1 > ${DUMPDIR}/$1.Z &
sleep 1
}


for dbname in $MYSQL_DB_LIST
do
echo "Starting dumping $dbname at " `date` >> ${LOGFILE}
comp ${dbname}_${d}.dmp

$MYSQLDUMP --opt --all -uroot ${dbname} > ${dbname}_${d}.dmp

if [ -p ${dbname}_${d}.dmp ]
then
rm -f ${dbname}_${d}.dmp
fi

echo "Finished dumping $dbname at " `date` >> ${LOGFILE}
echo "" >> ${LOGFILE}
done
--- cut here ---

Options: ReplyQuote


Subject
Views
Written By
Posted
3068
November 08, 2005 03:40PM
1882
November 09, 2005 03:57AM
Re: backing up 55GB myisam database
2050
November 11, 2005 11:02AM
2097
November 09, 2005 04:19PM
2043
November 11, 2005 11:11AM
1844
November 14, 2005 04:01AM


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.