<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Quick BASH Script to Dump &amp; Compress a MySQL Database</title>
	<atom:link href="http://biodegradablegeek.com/2008/12/quick-bash-script-to-dump-compress-a-mysql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://biodegradablegeek.com/2008/12/quick-bash-script-to-dump-compress-a-mysql-database/</link>
	<description></description>
	<lastBuildDate>Mon, 19 Jul 2010 18:46:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gudata</title>
		<link>http://biodegradablegeek.com/2008/12/quick-bash-script-to-dump-compress-a-mysql-database/comment-page-1/#comment-5655</link>
		<dc:creator>Gudata</dc:creator>
		<pubDate>Sun, 26 Apr 2009 16:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://biodegradablegeek.com/?p=299#comment-5655</guid>
		<description>On big tables it is better to do the table compression while exporting.
Here is an example from a backup I use.
Note that in my code the mysql will NOT lock the tables which might be not good for small tables.

function mysqlBackup {
        DB=$1
        tfile=$Backup_Dest_Dir_DB/$DB.sql.gz;
        mysqldump --routines --triggers --single-transaction --quick -h $MYSQL_HOST -u $MYSQL_USER -p$MYSQL_PASS -r $tfile --add-drop-table $DB &#124; gzip -9 &gt; $tfile
        # tar cjf $tfile.tar.bz $tfile
        # rm $tfile
}

&lt;abbr&gt;&lt;em&gt;Gudata&#8217;s last blog post..&lt;a href=&quot;http://www.gudasoft.com/development/04/23/842/zip-codes-and-distances/2009&quot;&gt;Zip Codes and Distances&lt;/a&gt;&lt;/abbr&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>On big tables it is better to do the table compression while exporting.<br />
Here is an example from a backup I use.<br />
Note that in my code the mysql will NOT lock the tables which might be not good for small tables.</p>
<p>function mysqlBackup {<br />
        DB=$1<br />
        tfile=$Backup_Dest_Dir_DB/$DB.sql.gz;<br />
        mysqldump &#8211;routines &#8211;triggers &#8211;single-transaction &#8211;quick -h $MYSQL_HOST -u $MYSQL_USER -p$MYSQL_PASS -r $tfile &#8211;add-drop-table $DB | gzip -9 &gt; $tfile<br />
        # tar cjf $tfile.tar.bz $tfile<br />
        # rm $tfile<br />
}</p>
<p><abbr><em>Gudata&#8217;s last blog post..<a href="http://www.gudasoft.com/development/04/23/842/zip-codes-and-distances/2009">Zip Codes and Distances</a></em></abbr></p>
]]></content:encoded>
	</item>
</channel>
</rss>
