<?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: How to e-mail yourself an automatic backup of your MySQL database table with PHP</title>
	<atom:link href="http://www.theblog.ca/mysql-email-backup/feed" rel="self" type="application/rss+xml" />
	<link>http://www.theblog.ca/mysql-email-backup</link>
	<description>Useful tips on Canada, cell phones, banking, technology, WordPress, PHP and more</description>
	<lastBuildDate>Fri, 10 Feb 2012 05:51:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Thomas</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-17108</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Wed, 16 Nov 2011 11:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-17108</guid>
		<description>Is there a way to exclude a specific table from the export. For example i have a table called &#039;file&#039; which is about 95% of the db but doesn&#039;t contain any data I would need backed up. Can we exclude this?

&lt;strong&gt;Reply from Peter: Yes, the mysqldump command supports: --ignore-table=db_name.tbl_name&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Is there a way to exclude a specific table from the export. For example i have a table called &#8216;file&#8217; which is about 95% of the db but doesn&#8217;t contain any data I would need backed up. Can we exclude this?</p>
<p><strong>Reply from Peter: Yes, the mysqldump command supports: &#8211;ignore-table=db_name.tbl_name</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro Arauz</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-16761</link>
		<dc:creator>Alejandro Arauz</dc:creator>
		<pubDate>Tue, 18 Oct 2011 21:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-16761</guid>
		<description>I had some errors runing the scritpt due to insufficient privileges on the server but I found this tool MySQLBackupFTP (http://mysqlbackupftp.com). The free version allows you to send the compressed bakups to a remote FTP server and can also send notifications to your email.
The good thing about the tool is that unlike the script you can change the timeout settings for big databases.</description>
		<content:encoded><![CDATA[<p>I had some errors runing the scritpt due to insufficient privileges on the server but I found this tool MySQLBackupFTP (http://mysqlbackupftp.com). The free version allows you to send the compressed bakups to a remote FTP server and can also send notifications to your email.<br />
The good thing about the tool is that unlike the script you can change the timeout settings for big databases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-16321</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 27 Jul 2011 08:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-16321</guid>
		<description>Just wanted to say I found you through a Google search via Noupe.com.  Your script works like a charm and gave me enough of a head start to customize and update for my own purposes.  I&#039;m glad you called out the Pear Mime and Pear Mail dependencies.  Fortunately for me, Hostgator has those installed by default.

I&#039;ve got the script setup to backup a number of Wordpress databases.  The backups are e-mailed to a Backup account, and if everything is successful, I get an e-mail in my inbox telling me that the backup was performed successfully.  

Thanks for sharing.  I really appreciate your contribution, and it&#039;s still valid 5 years hence.</description>
		<content:encoded><![CDATA[<p>Just wanted to say I found you through a Google search via Noupe.com.  Your script works like a charm and gave me enough of a head start to customize and update for my own purposes.  I&#8217;m glad you called out the Pear Mime and Pear Mail dependencies.  Fortunately for me, Hostgator has those installed by default.</p>
<p>I&#8217;ve got the script setup to backup a number of WordPress databases.  The backups are e-mailed to a Backup account, and if everything is successful, I get an e-mail in my inbox telling me that the backup was performed successfully.  </p>
<p>Thanks for sharing.  I really appreciate your contribution, and it&#8217;s still valid 5 years hence.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henri</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-16223</link>
		<dc:creator>Henri</dc:creator>
		<pubDate>Wed, 13 Jul 2011 11:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-16223</guid>
		<description>Works like the train toilet! Thanks, I use it with cron job and now it backups my and my customers db hourly.</description>
		<content:encoded><![CDATA[<p>Works like the train toilet! Thanks, I use it with cron job and now it backups my and my customers db hourly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-15886</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Tue, 17 May 2011 23:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-15886</guid>
		<description>Anyone who is getting a blank sql file as an attachment, you either have the username, password, or host incorrect.  For example, I was using &quot;localhost&quot; for host which I discovered to be incorrect.  I am using GoDadddy and they requires a very specific host name for my connection.  I fixed the problem and the script started working.</description>
		<content:encoded><![CDATA[<p>Anyone who is getting a blank sql file as an attachment, you either have the username, password, or host incorrect.  For example, I was using &quot;localhost&quot; for host which I discovered to be incorrect.  I am using GoDadddy and they requires a very specific host name for my connection.  I fixed the problem and the script started working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sourav kumar kar</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-15880</link>
		<dc:creator>sourav kumar kar</dc:creator>
		<pubDate>Mon, 16 May 2011 20:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-15880</guid>
		<description>i want to automatically backup in 1 hours interval.. means in 1 hours interval backup &amp; sent to main after then 1 Hours backup n send to mail.. plz help me....thanks to all the poster ...

&lt;strong&gt;Reply from Peter: A cron job should do that. Check the links in the post for more information on cron jobs.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>i want to automatically backup in 1 hours interval.. means in 1 hours interval backup &amp; sent to main after then 1 Hours backup n send to mail.. plz help me&#8230;.thanks to all the poster &#8230;</p>
<p><strong>Reply from Peter: A cron job should do that. Check the links in the post for more information on cron jobs.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krlos</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-15525</link>
		<dc:creator>krlos</dc:creator>
		<pubDate>Fri, 04 Mar 2011 07:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-15525</guid>
		<description>help me please!!!!


my  .sql is blank for this error

Warning: mysqldump: Option &#039;--set-variable&#039; is deprecated. Use --variable-name=value instead.
mysqldump: Got error: 1045: Access denied for user &#039;odontolo_dental&#039;@&#039;localhost&#039; (using password: YES) when trying to connect
X-Powered-By: PHP/5.2.14
Content-type: text/html</description>
		<content:encoded><![CDATA[<p>help me please!!!!</p>
<p>my  .sql is blank for this error</p>
<p>Warning: mysqldump: Option &#8216;&#8211;set-variable&#8217; is deprecated. Use &#8211;variable-name=value instead.<br />
mysqldump: Got error: 1045: Access denied for user &#8216;odontolo_dental&#8217;@'localhost&#8217; (using password: YES) when trying to connect<br />
X-Powered-By: PHP/5.2.14<br />
Content-type: text/html</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krlos</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-15524</link>
		<dc:creator>krlos</dc:creator>
		<pubDate>Fri, 04 Mar 2011 07:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-15524</guid>
		<description>i write in my comand of cron jobs : 
/ home / [my_account_name] / petermysqlbackup / backup.php 

but the message I get is a file. sql is blank   (0.0 kb)

Sorry for my english. I no speak english</description>
		<content:encoded><![CDATA[<p>i write in my comand of cron jobs :<br />
/ home / [my_account_name] / petermysqlbackup / backup.php </p>
<p>but the message I get is a file. sql is blank   (0.0 kb)</p>
<p>Sorry for my english. I no speak english</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-15411</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Sun, 20 Feb 2011 02:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-15411</guid>
		<description>Is there some way to make this script export a .xls file instead of .sql?

&lt;strong&gt;Reply from Peter: You&#039;d have to write your own code to transform the database information into an .xls structure, but there is likely public code somewhere.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Is there some way to make this script export a .xls file instead of .sql?</p>
<p><strong>Reply from Peter: You&#8217;d have to write your own code to transform the database information into an .xls structure, but there is likely public code somewhere.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan-ll</title>
		<link>http://www.theblog.ca/mysql-email-backup/comment-page-1#comment-15260</link>
		<dc:creator>dan-ll</dc:creator>
		<pubDate>Mon, 24 Jan 2011 18:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/?p=25#comment-15260</guid>
		<description>try this to sort out the output file, just add

--skip-extended-insert

this will take a new line of each record in each table, hence not all in one unreadable and trucated line.

eg.

system(&quot;mysqldump --skip-extended-insert -h $dbhost -u $dbuser -p$dbpass $dbname &gt; $backupfile&quot;);

if that don&#039;t work 
try

--skip-opt

eg

system(&quot;mysqldump --skip-opt -h $dbhost -u $dbuser -p$dbpass $dbname &gt; $backupfile&quot;);</description>
		<content:encoded><![CDATA[<p>try this to sort out the output file, just add</p>
<p>&#8211;skip-extended-insert</p>
<p>this will take a new line of each record in each table, hence not all in one unreadable and trucated line.</p>
<p>eg.</p>
<p>system(&quot;mysqldump &#8211;skip-extended-insert -h $dbhost -u $dbuser -p$dbpass $dbname &gt; $backupfile&quot;);</p>
<p>if that don&#8217;t work<br />
try</p>
<p>&#8211;skip-opt</p>
<p>eg</p>
<p>system(&quot;mysqldump &#8211;skip-opt -h $dbhost -u $dbuser -p$dbpass $dbname &gt; $backupfile&quot;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

