<?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: On-Demand MySQL Backup Shell Script</title>
	<atom:link href="http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Wed, 18 Nov 2009 23:28:48 -0500</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Manu</title>
		<link>http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html#comment-16672</link>
		<dc:creator>Manu</dc:creator>
		<pubDate>Tue, 18 Sep 2007 04:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html#comment-16672</guid>
		<description>This is real Cool Stuff

Thanks Man</description>
		<content:encoded><![CDATA[<p>This is real Cool Stuff</p>
<p>Thanks Man</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html#comment-6632</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Wed, 06 Jun 2007 14:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html#comment-6632</guid>
		<description>This seems a little over the top for the job required, I have a script which I&#039;ve setup through dreamhost&#039;s cron manager to run daily, and dump all databases, here is what it is:

     &lt;pre&gt;
#!/bin/bash
&#160;
DATE1=`date &#124; awk &#039;{print $3}&#039;`
DATE2=`date &#124; awk &#039;{print $2}&#039;`
DATE3=`date &#124; awk &#039;{print $6}&#039;`
&#160;
THEDATE=&quot;${DATE1}${DATE2}${DATE3}&quot;
&#160;
########################### CONFIGURATION START 
&#160;
ORIGDIR=&quot;/home/stuffatschool/mysql/&quot;  # original directory to put 
&#160;
MYSQLHOST=dbhost  #MySQL Host
MYSQLUSER=dbuser      # MySQL user for dump
MYSQLPASS=dbpass    # MySQL password for dump
&#160;
########################### CONFIGURATION DONE 
cd ${ORIGDIR} # chdir to the right dir
&#160;
mysqldump -u ${MYSQLUSER} -p${MYSQLPASS} -h${MYSQLHOST} -A &gt; &quot;./MySQL_${THEDATE}.sql&quot; # dump db
&lt;/pre&gt;     </description>
		<content:encoded><![CDATA[<p>This seems a little over the top for the job required, I have a script which I&#8217;ve setup through dreamhost&#8217;s cron manager to run daily, and dump all databases, here is what it is:</p>
<pre>#!/bin/bash
&nbsp;
DATE1=`date | awk &#039;{print $3}&#039;`
DATE2=`date | awk &#039;{print $2}&#039;`
DATE3=`date | awk &#039;{print $6}&#039;`
&nbsp;
THEDATE="${DATE1}${DATE2}${DATE3}"
&nbsp;
########################### CONFIGURATION START
&nbsp;
ORIGDIR="/home/stuffatschool/mysql/"  # original directory to put
&nbsp;
MYSQLHOST=dbhost  #MySQL Host
MYSQLUSER=dbuser      # MySQL user for dump
MYSQLPASS=dbpass    # MySQL password for dump
&nbsp;
########################### CONFIGURATION DONE
cd ${ORIGDIR} # chdir to the right dir
&nbsp;
mysqldump -u ${MYSQLUSER} -p${MYSQLPASS} -h${MYSQLHOST} -A &gt; "./MySQL_${THEDATE}.sql" # dump db</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html#comment-6321</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Fri, 01 Jun 2007 10:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/dreamhost/on-demand-mysql-backup-shell-script.html#comment-6321</guid>
		<description>this sounds intersting and practical. nice blog btw.

i understand it&#039;s a shell file but how is it used ... &#039;where do you put it on server, or where do you save it&#039;? will you add documentation for this, readme?

thanks for great tutorials!</description>
		<content:encoded><![CDATA[<p>this sounds intersting and practical. nice blog btw.</p>
<p>i understand it&#8217;s a shell file but how is it used &#8230; &#8216;where do you put it on server, or where do you save it&#8217;? will you add documentation for this, readme?</p>
<p>thanks for great tutorials!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
