<?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: New AutoMySQLBackup Script</title>
	<atom:link href="/2010/04/new-automysqlbackup-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlfanboy.com/2010/04/new-automysqlbackup-script/</link>
	<description>Almost crazy about Opensource / Free  information.</description>
	<lastBuildDate>Tue, 13 Mar 2012 15:44:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kurt</title>
		<link>http://www.mysqlfanboy.com/2010/04/new-automysqlbackup-script/comment-page-1/#comment-648</link>
		<dc:creator>Kurt</dc:creator>
		<pubDate>Fri, 08 Jul 2011 04:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlfanboy.com/?p=103#comment-648</guid>
		<description>Have been testing this, had to make a few mods;

The PATH statement needs to be earlier for the all the which commands to work (at least on one of our boxes which has a magical setup) and I had the same issue as Jason , we had left the COPYDIR blank and it still tried to rsync to a non existent directory , the same fix Jason put in sorted it out for us. BTW there is a typo in the fix , should be HOSTNAME not NOSTNAMEA

Otherwise a very useful script that is much appreciated</description>
		<content:encoded><![CDATA[<p>Have been testing this, had to make a few mods;</p>
<p>The PATH statement needs to be earlier for the all the which commands to work (at least on one of our boxes which has a magical setup) and I had the same issue as Jason , we had left the COPYDIR blank and it still tried to rsync to a non existent directory , the same fix Jason put in sorted it out for us. BTW there is a typo in the fix , should be HOSTNAME not NOSTNAMEA</p>
<p>Otherwise a very useful script that is much appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.mysqlfanboy.com/2010/04/new-automysqlbackup-script/comment-page-1/#comment-250</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 01 Dec 2010 03:32:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlfanboy.com/?p=103#comment-250</guid>
		<description>Nice improvements!

If I set BYHOSTNAME to yes and COPYDIR to blank, then COPYDIR is wrong set in line 525:

if [ &quot;${BYHOSTNAME}&quot; = &quot;yes&quot; ];
	then
		BACKUPDIR=&quot;$BACKUPDIR/$HOSTNAMEA&quot;
		COPYDIR=&quot;$COPYDIR/$HOSTNAMEA&quot;
	fi

I&#039;ll get a copy in /hostname/hostname on the server, that&#039;s not what we expected.

I guess we have to check COPYDIR is blank or not there:

if [ &quot;${BYHOSTNAME}&quot; = &quot;yes&quot; ];
	then
		BACKUPDIR=&quot;$BACKUPDIR/$HOSTNAMEA&quot;
		if [ ! $COPYDIR = &quot;&quot; ]; then
			COPYDIR=&quot;$COPYDIR/$HOSTNAMEA&quot;
		fi		
	fi</description>
		<content:encoded><![CDATA[<p>Nice improvements!</p>
<p>If I set BYHOSTNAME to yes and COPYDIR to blank, then COPYDIR is wrong set in line 525:</p>
<p>if [ "${BYHOSTNAME}" = "yes" ];<br />
	then<br />
		BACKUPDIR=&#8221;$BACKUPDIR/$HOSTNAMEA&#8221;<br />
		COPYDIR=&#8221;$COPYDIR/$HOSTNAMEA&#8221;<br />
	fi</p>
<p>I&#8217;ll get a copy in /hostname/hostname on the server, that&#8217;s not what we expected.</p>
<p>I guess we have to check COPYDIR is blank or not there:</p>
<p>if [ "${BYHOSTNAME}" = "yes" ];<br />
	then<br />
		BACKUPDIR=&#8221;$BACKUPDIR/$HOSTNAMEA&#8221;<br />
		if [ ! $COPYDIR = "" ]; then<br />
			COPYDIR=&#8221;$COPYDIR/$HOSTNAMEA&#8221;<br />
		fi<br />
	fi</p>
]]></content:encoded>
	</item>
</channel>
</rss>
