<?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: MySQL &#8211; Daily database dumps, all nicely sorted.</title>
	<atom:link href="http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 02:44:39 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: N GowriSankar</title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-12805</link>
		<dc:creator>N GowriSankar</dc:creator>
		<pubDate>Tue, 23 Jun 2009 10:13:05 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12805</guid>
		<description>This looks great. I like the idea of gzipping it.&lt;br&gt;&lt;br&gt;For our requirement, we were taking two level backups = Daily backups and Monthly backups. The daily backups are recycled every week and monthly backups are stored for much longer duration [As a matter of fact, we have not yet deleted them for past 3  years]. Of course, our backups are only 200+ MB now. &lt;br&gt;&lt;br&gt;So we have ended up with: &lt;br&gt;01-2008.dmp, 02-2008.dmp, 03-2008.dmp, ... 05-2009, 06-2009.dmp, etc and seven daily dump files = Mon.dmp, Tue.dmp, Wed.dmp, ... Sat.dmp, Sun.dmp &lt;br&gt;&lt;br&gt;We used `date +%e` to get the day of today. We used `date +%0m` to get month and `date +%0y` to get year.</description>
		<content:encoded><![CDATA[<p>This looks great. I like the idea of gzipping it.</p>
<p>For our requirement, we were taking two level backups = Daily backups and Monthly backups. The daily backups are recycled every week and monthly backups are stored for much longer duration [As a matter of fact, we have not yet deleted them for past 3  years]. Of course, our backups are only 200+ MB now. </p>
<p>So we have ended up with: <br />01-2008.dmp, 02-2008.dmp, 03-2008.dmp, &#8230; 05-2009, 06-2009.dmp, etc and seven daily dump files = Mon.dmp, Tue.dmp, Wed.dmp, &#8230; Sat.dmp, Sun.dmp </p>
<p>We used `date +%e` to get the day of today. We used `date +%0m` to get month and `date +%0y` to get year.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christian</title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-8775</link>
		<dc:creator>christian</dc:creator>
		<pubDate>Sun, 22 Feb 2009 23:08:09 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-8775</guid>
		<description>thanks very much for this explanation</description>
		<content:encoded><![CDATA[<p>thanks very much for this explanation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-3618</link>
		<dc:creator></dc:creator>
		<pubDate>Sun, 13 Apr 2008 12:04:21 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-3618</guid>
		<description>I am little new to coding stuff and am bit confused to paths and user with or without password.

Can you please tell me exact script with following parameters:

1. Type of hosting: shared
2. Objective: to backup every database and keep them for 15 days
3. Backup folder: /home/myid/db-backups
4. etc folder is located at /home/myid/etc
5. UserID: hello, password: iamok

Please also tell me the command to be executed on cron tab to run your sh script, thanks.</description>
		<content:encoded><![CDATA[<p>I am little new to coding stuff and am bit confused to paths and user with or without password.</p>
<p>Can you please tell me exact script with following parameters:</p>
<p>1. Type of hosting: shared<br />
2. Objective: to backup every database and keep them for 15 days<br />
3. Backup folder: /home/myid/db-backups<br />
4. etc folder is located at /home/myid/etc<br />
5. UserID: hello, password: iamok</p>
<p>Please also tell me the command to be executed on cron tab to run your sh script, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-3617</link>
		<dc:creator></dc:creator>
		<pubDate>Sun, 13 Apr 2008 11:46:07 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-3617</guid>
		<description>Hi,

I am also looking for a reliable and dependable solution to backups my databases on the server and want to keep each backup for atleast 15-30 days.

I guess the solution mentioned here is more reliable than the ones available with php scripts.

&lt;strong&gt;Can you tell me the command to be executed on cron tab to take daily backups at a specified time?
&lt;/strong&gt;
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am also looking for a reliable and dependable solution to backups my databases on the server and want to keep each backup for atleast 15-30 days.</p>
<p>I guess the solution mentioned here is more reliable than the ones available with php scripts.</p>
<p><strong>Can you tell me the command to be executed on cron tab to take daily backups at a specified time?<br />
</strong><br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Esquire</title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-1990</link>
		<dc:creator>Esquire</dc:creator>
		<pubDate>Fri, 17 Jun 2005 19:36:10 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-1990</guid>
		<description>Just on the code
&lt;code&gt;for DATABASE in `echo &#039;show databases&#039; &#124; mysql -p`&lt;/code&gt;


--column-names=false should be added so that &quot;Database&quot;, which is the column name, will not be included in the list.

Thus...
&lt;code&gt;for DATABASE in `echo &#039;show databases&#039; &#124; mysql --column-names=false -p`&lt;/code&gt;




&lt;ul id=&quot;quote&quot;&gt;&lt;h6&gt;Anonymous wrote:&lt;/h6&gt;If you want to back up *every* database on the server, then replace this line

&lt;code&gt;for DATABASE in `cat /etc/db-backup/db-list.txt`&lt;/code&gt;


with the following

&lt;code&gt;for DATABASE in `echo &#039;show databases&#039; &#124; mysql`&lt;/code&gt;
&lt;/ul&gt;</description>
		<content:encoded><![CDATA[<p>Just on the code<br />
<code>for DATABASE in `echo 'show databases' | mysql -p`</code></p>
<p>&#8211;column-names=false should be added so that &#8220;Database&#8221;, which is the column name, will not be included in the list.</p>
<p>Thus&#8230;<br />
<code>for DATABASE in `echo 'show databases' | mysql --column-names=false -p`</code></p>
<ul id="quote">
<h6>Anonymous wrote:</h6>
<p>If you want to back up *every* database on the server, then replace this line</p>
<p><code>for DATABASE in `cat /etc/db-backup/db-list.txt`</code></p>
<p>with the following</p>
<p><code>for DATABASE in `echo 'show databases' | mysql`</code>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-233</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 04 Jul 2004 08:05:16 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-233</guid>
		<description>&lt;ul id=&quot;quote&quot;&gt;&lt;h6&gt;Anonymous wrote:&lt;/h6&gt;&lt;ul id=&quot;quote&quot;&gt;/usr/local/bin/mysqldump --user=root --opt $DATABASE &#124; gzip &lt;/ul&gt;

this is for user root with no password, if the user root has a password add &#039;--password=&#039; followed by your password INSTEAD of just putting &#039;-p&#039;

I&#039;ve tried using &#039;-p&#039; but then I got the password prompt.&lt;/ul&gt;
try using -ppassword
instead of -p password.</description>
		<content:encoded><![CDATA[<ul id="quote">
<h6>Anonymous wrote:</h6>
</ul>
<ul id="quote">/usr/local/bin/mysqldump &#8211;user=root &#8211;opt $DATABASE | gzip </ul>
<p>this is for user root with no password, if the user root has a password add &#8216;&#8211;password=&#8217; followed by your password INSTEAD of just putting &#8216;-p&#8217;</p>
<p>I&#8217;ve tried using &#8216;-p&#8217; but then I got the password prompt.<br />
try using -ppassword<br />
instead of -p password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-231</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 02 Jul 2004 01:23:26 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-231</guid>
		<description>&lt;ul id=&quot;quote&quot;&gt;/usr/local/bin/mysqldump --user=root --opt $DATABASE &#124; gzip &lt;/ul&gt;

this is for user root with no password, if the user root has a password add &#039;--password=&#039; followed by your password INSTEAD of just putting &#039;-p&#039;

I&#039;ve tried using &#039;-p&#039; but then I got the password prompt.</description>
		<content:encoded><![CDATA[<ul id="quote">/usr/local/bin/mysqldump &#8211;user=root &#8211;opt $DATABASE | gzip </ul>
<p>this is for user root with no password, if the user root has a password add &#8216;&#8211;password=&#8217; followed by your password INSTEAD of just putting &#8216;-p&#8217;</p>
<p>I&#8217;ve tried using &#8216;-p&#8217; but then I got the password prompt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-142</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 14 Apr 2004 11:20:32 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-142</guid>
		<description>If you want to back up *every* database on the server, then replace this line

&lt;code&gt;for DATABASE in `cat /etc/db-backup/db-list.txt`&lt;/code&gt;


with the following

&lt;code&gt;for DATABASE in `echo &#039;show databases&#039; &#124; mysql`&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>If you want to back up *every* database on the server, then replace this line</p>
<p><code>for DATABASE in `cat /etc/db-backup/db-list.txt`</code></p>
<p>with the following</p>
<p><code>for DATABASE in `echo 'show databases' | mysql`</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-39</link>
		<dc:creator></dc:creator>
		<pubDate>Sun, 30 Nov 2003 17:05:33 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39</guid>
		<description>This is exactly what I&#039;ve been looking for. Will try it soon.

Ellen</description>
		<content:encoded><![CDATA[<p>This is exactly what I&#8217;ve been looking for. Will try it soon.</p>
<p>Ellen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bofh468</title>
		<link>http://www.tech-recipes.com/rx/221/mysql-daily-database-dumps-all-nicely-sorted/comment-page-1/#comment-25</link>
		<dc:creator>bofh468</dc:creator>
		<pubDate>Tue, 11 Nov 2003 14:02:59 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-25</guid>
		<description>I know that replying to oneself is bad karma... but I noticed a typo above.  The backup files will be located under &lt;strong&gt;/home/backups/mysql/dbname-YYYY-MM-DD.tar.gz&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>I know that replying to oneself is bad karma&#8230; but I noticed a typo above.  The backup files will be located under <strong>/home/backups/mysql/dbname-YYYY-MM-DD.tar.gz</strong></p>
]]></content:encoded>
	</item>
</channel>
</rss>
