Linux.com

Small bug?

Posted by: Anonymous Coward on December 27, 2004 08:51 PM
In the last code line of the article, I think that the file <tt> sample_db.2004-12-16</tt> should be directed into <tt>mysql</tt> instead of writing the output of it into the backup file. The line as it stands now could delete the file!

The correct line would look like this (the part before<nobr> <wbr></nobr><tt>/mnt/</tt> is a less than sign instead of greater than):
<TT>mysql -u<username> -p<password> -h<hostname> sample_db <<nobr> <wbr></nobr>/mnt/backup_share/sample_db.2004-12-16</TT>

#

Return to Backing up your MySQL data