<?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: Cron and mySQL Database Backups</title>
	<atom:link href="http://developedtraffic.com/2005/02/26/cron-and-database-backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/</link>
	<description>Web design, search engine optimization and Internet marketing</description>
	<lastBuildDate>Fri, 20 Apr 2012 18:35:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: I think i've been hacked - Page 2 - PhotoPost Community</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-145744</link>
		<dc:creator>I think i've been hacked - Page 2 - PhotoPost Community</dc:creator>
		<pubDate>Wed, 09 Jun 2010 18:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-145744</guid>
		<description>[...] directory.  To best way to backup your classifieds database is maybe with a cron task like this   Cron and mySQL Database Backups  Or for less technically minded users phpmyadmin is the best way and is usually installed in your [...]</description>
		<content:encoded><![CDATA[<p>[...] directory.  To best way to backup your classifieds database is maybe with a cron task like this   Cron and mySQL Database Backups  Or for less technically minded users phpmyadmin is the best way and is usually installed in your [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress 2.9.x upgrade causes weird characters on blog</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-145724</link>
		<dc:creator>WordPress 2.9.x upgrade causes weird characters on blog</dc:creator>
		<pubDate>Sun, 02 May 2010 10:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-145724</guid>
		<description>[...] you have the ability to download your database (here&#039;s the harder version of getting a mysqldump, which is much easier if you have phpMyAdmin), I&#039;d suggest downloading only [...]</description>
		<content:encoded><![CDATA[<p>[...] you have the ability to download your database (here&#39;s the harder version of getting a mysqldump, which is much easier if you have phpMyAdmin), I&#39;d suggest downloading only [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diane Vigil</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-66473</link>
		<dc:creator>Diane Vigil</dc:creator>
		<pubDate>Wed, 16 Jul 2008 17:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-66473</guid>
		<description>Hi Fili. You could try it. The username should be the username and password should be those assigned for use of that database (rather than a customer login).

Otherwise, what I outlined above should work for you.</description>
		<content:encoded><![CDATA[<p>Hi Fili. You could try it. The username should be the username and password should be those assigned for use of that database (rather than a customer login).</p>
<p>Otherwise, what I outlined above should work for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fili</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-66465</link>
		<dc:creator>Fili</dc:creator>
		<pubDate>Wed, 16 Jul 2008 16:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-66465</guid>
		<description>It is also possible to specify a location of your .my.cnf file on the command line:

/usr/bin/mysqldump --defaults-file=/path/to/.my.cnf -u root mydatabase

Put this in the .my.cnf file

[client]
password=mypassword</description>
		<content:encoded><![CDATA[<p>It is also possible to specify a location of your .my.cnf file on the command line:</p>
<p>/usr/bin/mysqldump &#8211;defaults-file=/path/to/.my.cnf -u root mydatabase</p>
<p>Put this in the .my.cnf file</p>
<p>[client]<br />
password=mypassword</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ctmax Xunil</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-9074</link>
		<dc:creator>Ctmax Xunil</dc:creator>
		<pubDate>Thu, 10 May 2007 03:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-9074</guid>
		<description>A good article and reference, although some comments complicates it, just following the tips will aid to create a good cron.
Many thanks!</description>
		<content:encoded><![CDATA[<p>A good article and reference, although some comments complicates it, just following the tips will aid to create a good cron.<br />
Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diane Vigil</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3683</link>
		<dc:creator>Diane Vigil</dc:creator>
		<pubDate>Fri, 05 Jan 2007 18:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3683</guid>
		<description>Koesmanto, I found some references &lt;a href=&quot;http://www.google.com/search?hl=en&amp;lr=&amp;client=opera&amp;rls=en&amp;hs=GSE&amp;q=cron+.my.cnf&amp;btnG=Search&quot; target=&quot;_blank&quot;&gt;at Google&lt;/a&gt;. Specifically, &lt;a href=&quot;http://forums.asmallorange.com/index.php?showtopic=8651&quot; target=&quot;_blank&quot;&gt;this discussion&lt;/a&gt; at the A Small Orange forums might help.

Otherwise, you may have to tweak the code a bit, as servers differ from one to the next.</description>
		<content:encoded><![CDATA[<p>Koesmanto, I found some references <a href="http://www.google.com/search?hl=en&#038;lr=&#038;client=opera&#038;rls=en&#038;hs=GSE&#038;q=cron+.my.cnf&#038;btnG=Search" target="_blank">at Google</a>. Specifically, <a href="http://forums.asmallorange.com/index.php?showtopic=8651" target="_blank">this discussion</a> at the A Small Orange forums might help.</p>
<p>Otherwise, you may have to tweak the code a bit, as servers differ from one to the next.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koesmanto Bong</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3676</link>
		<dc:creator>Koesmanto Bong</dc:creator>
		<pubDate>Fri, 05 Jan 2007 16:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3676</guid>
		<description>I am having some problem with cron and .my.cnf.  maybe you, diane, or james or Mike aka Jy can help.

2 scenarios:

1.  i set up ~/.my.cnf file with the user name and password and host.  then i set up my cron job.  i am 100% sure that the username and password are correct because i manually run the script and it did what it needs to do.  i went to the backup folder today and the backup files were created but they were blank.  so i proceded with the #2

2.  i disabled ~/.my.cnf file and actually have -u -p in my shell mysqldump script and the set the cron job up to run again in 5 minutes.  5 minutes later, i found the backup files with content in the backup folder.

my conclusion: the ~/.my.cnf file wasnt being read.  what did i do wrong?  any suggestions?</description>
		<content:encoded><![CDATA[<p>I am having some problem with cron and .my.cnf.  maybe you, diane, or james or Mike aka Jy can help.</p>
<p>2 scenarios:</p>
<p>1.  i set up ~/.my.cnf file with the user name and password and host.  then i set up my cron job.  i am 100% sure that the username and password are correct because i manually run the script and it did what it needs to do.  i went to the backup folder today and the backup files were created but they were blank.  so i proceded with the #2</p>
<p>2.  i disabled ~/.my.cnf file and actually have -u -p in my shell mysqldump script and the set the cron job up to run again in 5 minutes.  5 minutes later, i found the backup files with content in the backup folder.</p>
<p>my conclusion: the ~/.my.cnf file wasnt being read.  what did i do wrong?  any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diane Vigil</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3639</link>
		<dc:creator>Diane Vigil</dc:creator>
		<pubDate>Thu, 04 Jan 2007 18:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3639</guid>
		<description>Well, I&#039;ve set mine up a little differently by moving the individual programs to .sh files, but it would be cronjobs (or wahtever your crontab file is called). In fact, you could put the whole thing in cronjobs:

&lt;blockquote class=&quot;codegreen&quot;&gt;
50 23 * * * /server/path/to/file.sh
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Well, I've set mine up a little differently by moving the individual programs to .sh files, but it would be cronjobs (or wahtever your crontab file is called). In fact, you could put the whole thing in cronjobs:</p>
<blockquote class="codegreen"><p>
50 23 * * * /server/path/to/file.sh
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koesmanto Bong</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3638</link>
		<dc:creator>Koesmanto Bong</dc:creator>
		<pubDate>Thu, 04 Jan 2007 18:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3638</guid>
		<description>where do you specify 50 23 * * * /server/path/to/file.sh, diane?

i have a dedicated server, but thanks for the advice, i am looking into my.cnf file now.</description>
		<content:encoded><![CDATA[<p>where do you specify 50 23 * * * /server/path/to/file.sh, diane?</p>
<p>i have a dedicated server, but thanks for the advice, i am looking into my.cnf file now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diane Vigil</title>
		<link>http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3637</link>
		<dc:creator>Diane Vigil</dc:creator>
		<pubDate>Thu, 04 Jan 2007 17:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-3637</guid>
		<description>It looks like you&#039;re using James&#039; version, as I&#039;m not sure what datetime does. I specify time of file running like this:

&lt;blockquote class=&quot;codegreen&quot;&gt;
50 23 * * * /server/path/to/file.sh
&lt;/blockquote&gt;

... which means 11:50 PM (23rd hour, 50th minute).

The mailto command should be after the bin/bash (mine is different).

What you *could* do is to set it to run in five minutes; upload it and reset via the ~cronjobs command, and see if it works. If it doesn&#039;t then you tweak.

By the way, however inelegantly put by Mike aka Jy (I don&#039;t do Digg) above, his suggestion to &lt;a href=&quot;http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-1787&quot; target=&quot;_blank&quot;&gt;move the root password elsewhere&lt;/a&gt; is good, especially if you&#039;re using a shared web host.</description>
		<content:encoded><![CDATA[<p>It looks like you're using James' version, as I'm not sure what datetime does. I specify time of file running like this:</p>
<blockquote class="codegreen"><p>
50 23 * * * /server/path/to/file.sh
</p></blockquote>
<p>&#8230; which means 11:50 PM (23rd hour, 50th minute).</p>
<p>The mailto command should be after the bin/bash (mine is different).</p>
<p>What you *could* do is to set it to run in five minutes; upload it and reset via the ~cronjobs command, and see if it works. If it doesn't then you tweak.</p>
<p>By the way, however inelegantly put by Mike aka Jy (I don't do Digg) above, his suggestion to <a href="http://developedtraffic.com/2005/02/26/cron-and-database-backups/#comment-1787" target="_blank">move the root password elsewhere</a> is good, especially if you're using a shared web host.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

