<?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: A Handy PHP Backup Script</title>
	<atom:link href="http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/feed" rel="self" type="application/rss+xml" />
	<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script</link>
	<description>Technical Information You Can Use (or not - but hey, at least it&#039;s free!)</description>
	<lastBuildDate>Sun, 25 Jul 2010 09:40:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gewinne</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-1073</link>
		<dc:creator>Gewinne</dc:creator>
		<pubDate>Sun, 16 May 2010 13:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-1073</guid>
		<description>hola 
i&#039;m so pleased that i found this site. that post was so nice. thanks again i added the rss on this page.
are you planning to post similar posts?</description>
		<content:encoded><![CDATA[<p>hola<br />
i&#8217;m so pleased that i found this site. that post was so nice. thanks again i added the rss on this page.<br />
are you planning to post similar posts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Handy PHP Backup Script « DJS Consulting Tech Blog &#124; Yoobz</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-1061</link>
		<dc:creator>A Handy PHP Backup Script « DJS Consulting Tech Blog &#124; Yoobz</dc:creator>
		<pubDate>Sat, 06 Mar 2010 06:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-1061</guid>
		<description>[...] more: A Handy PHP Backup Script « DJS Consulting Tech Blog  Posteado por: yoobz on March 29, [...]</description>
		<content:encoded><![CDATA[<p>[...] more: A Handy PHP Backup Script « DJS Consulting Tech Blog  Posteado por: yoobz on March 29, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-1057</link>
		<dc:creator>Terry</dc:creator>
		<pubDate>Mon, 28 Sep 2009 23:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-1057</guid>
		<description>Thanks for the post! 

 I decided to use the same basic framework to backup my website (substituting tar for mysqldump) but the resulting file is so big (about 20 meg) that the line
    $sData = chunk_split(base64_encode(implode(&quot;&quot;, file($sFilename))));

throws an error.  I&#039;m working on fixing it, but any suggestions would be appreciated.

Thanks!

Terry</description>
		<content:encoded><![CDATA[<p>Thanks for the post! </p>
<p> I decided to use the same basic framework to backup my website (substituting tar for mysqldump) but the resulting file is so big (about 20 meg) that the line<br />
    $sData = chunk_split(base64_encode(implode(&#8220;&#8221;, file($sFilename))));</p>
<p>throws an error.  I&#8217;m working on fixing it, but any suggestions would be appreciated.</p>
<p>Thanks!</p>
<p>Terry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-1044</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 21 Jul 2009 12:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-1044</guid>
		<description>(Sorry for the delay)

Aman, that looks like it should work.  I can&#039;t test it right now, as my main development machine is down, but the form follows the first example at the link I provided.</description>
		<content:encoded><![CDATA[<p>(Sorry for the delay)</p>
<p>Aman, that looks like it should work.  I can&#8217;t test it right now, as my main development machine is down, but the form follows the first example at the link I provided.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aman</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-1043</link>
		<dc:creator>aman</dc:creator>
		<pubDate>Wed, 15 Jul 2009 17:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-1043</guid>
		<description>Please can u give an example... 


$sFilename = &quot;backup-database-&quot; . date(&quot;Y-m-d&quot;) . &quot;.csv&quot;;

$sBackupCommand = &quot;mysqldump -u user database table111 &gt; $sFilename&quot;;

/*user - the main username 
database - my database name
table111 - the table to be backed up

Is it correct? */</description>
		<content:encoded><![CDATA[<p>Please can u give an example&#8230; </p>
<p>$sFilename = &#8220;backup-database-&#8221; . date(&#8220;Y-m-d&#8221;) . &#8220;.csv&#8221;;</p>
<p>$sBackupCommand = &#8220;mysqldump -u user database table111 &gt; $sFilename&#8221;;</p>
<p>/*user &#8211; the main username<br />
database &#8211; my database name<br />
table111 &#8211; the table to be backed up</p>
<p>Is it correct? */</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-1042</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 15 Jul 2009 11:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-1042</guid>
		<description>Aman,

The part you quoted just creates the filename - the actual backup command for MySQL is on line 56, and for PostgreSQL on line 59.  These sample commands will grab all the tables in the database.  They work well - I&#039;ve recently had some problems on my development machine, and had to set up another one.  I used backups modeled after the script above, and was able to create new test databases pretty quickly.

That being said, if you&#039;re using MySQL, add &quot;--tables [list of tables]&quot; after the [db_name] parameter to selectively dump certain tables - details on mysqldump can be found &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.  In a similar way, the &quot;--table=[tablename]&quot; option can be added to pgdump (and can also be qualified with a schema name using &quot;--schema=[schemaname]) - more details on pgdump are &lt;a href=&quot;http://www.postgresql.org/docs/7.4/static/app-pgdump.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

I hope that helps!  :)</description>
		<content:encoded><![CDATA[<p>Aman,</p>
<p>The part you quoted just creates the filename &#8211; the actual backup command for MySQL is on line 56, and for PostgreSQL on line 59.  These sample commands will grab all the tables in the database.  They work well &#8211; I&#8217;ve recently had some problems on my development machine, and had to set up another one.  I used backups modeled after the script above, and was able to create new test databases pretty quickly.</p>
<p>That being said, if you&#8217;re using MySQL, add &#8220;&#8211;tables [list of tables]&#8221; after the [db_name] parameter to selectively dump certain tables &#8211; details on mysqldump can be found <a href="http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html" rel="nofollow">here</a>.  In a similar way, the &#8220;&#8211;table=[tablename]&#8221; option can be added to pgdump (and can also be qualified with a schema name using &#8220;&#8211;schema=[schemaname]) &#8211; more details on pgdump are <a href="http://www.postgresql.org/docs/7.4/static/app-pgdump.html" rel="nofollow">here</a>.</p>
<p>I hope that helps!  <img src='http://djs-consulting.com/linux/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aman</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-1041</link>
		<dc:creator>aman</dc:creator>
		<pubDate>Tue, 14 Jul 2009 19:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-1041</guid>
		<description>$sFilename = &quot;backup-my_database_name-&quot; . date(&quot;Y-m-d&quot;) . &quot;.sql&quot;; */
$sFilename = &quot;backup-[whatever-it-is]-&quot; . date(&quot;Y-m-d&quot;) . &quot;.[extension]&quot;;
 

How do I specify my table here which has to backed up?</description>
		<content:encoded><![CDATA[<p>$sFilename = &#8220;backup-my_database_name-&#8221; . date(&#8220;Y-m-d&#8221;) . &#8220;.sql&#8221;; */<br />
$sFilename = &#8220;backup-[whatever-it-is]-&#8221; . date(&#8220;Y-m-d&#8221;) . &#8220;.[extension]&#8220;;</p>
<p>How do I specify my table here which has to backed up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thet</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-930</link>
		<dc:creator>thet</dc:creator>
		<pubDate>Thu, 30 Oct 2008 08:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-930</guid>
		<description>thanks for your provided</description>
		<content:encoded><![CDATA[<p>thanks for your provided</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Coding School &#187; Blog Archive &#187; php code [2008-03-29 06:53:44]</title>
		<link>http://djs-consulting.com/linux/blog/2008/a-handy-php-backup-script/comment-page-1#comment-360</link>
		<dc:creator>PHP Coding School &#187; Blog Archive &#187; php code [2008-03-29 06:53:44]</dc:creator>
		<pubDate>Sat, 29 Mar 2008 07:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.djs-consulting.com/linux/blog/2008/a-handy-php-backup-script#comment-360</guid>
		<description>[...]  A Handy PHP Backup Script  By Daniel  I found a script over on the Lunarpages Forums about using PHP to back up your site. I have taken it, modified it a little, beefed up the documentation a lot, and am now posting it here. You can download the source code for it, &#8230;   DJS Consulting Tech Blog - http://www.djs-consulting.com/linux/blog [...]</description>
		<content:encoded><![CDATA[<p>[...]  A Handy PHP Backup Script  By Daniel  I found a script over on the Lunarpages Forums about using PHP to back up your site. I have taken it, modified it a little, beefed up the documentation a lot, and am now posting it here. You can download the source code for it, &#8230;   DJS Consulting Tech Blog &#8211; <a href="http://www.djs-consulting.com/linux/blog" rel="nofollow">http://www.djs-consulting.com/linux/blog</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
