<?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"
	>
<channel>
	<title>Comments for duivesteyn engineering</title>
	<atom:link href="http://duivesteyn.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://duivesteyn.net</link>
	<description>logic &#124; code &#124; automation</description>
	<pubDate>Wed, 07 Jan 2009 06:13:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by Rob Anderson</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-31</link>
		<dc:creator>Rob Anderson</dc:creator>
		<pubDate>Thu, 13 Nov 2008 08:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-31</guid>
		<description>@Rob Anderson (me :)

If you run the cron job under the root account it works fine. I guess when running it under the cPanel account, it doesn't have enough access to run curl (hey - I told you I was a noob).

This solution rocks!</description>
		<content:encoded><![CDATA[<p>@Rob Anderson (me <img src='http://duivesteyn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you run the cron job under the root account it works fine. I guess when running it under the cPanel account, it doesn&#8217;t have enough access to run curl (hey - I told you I was a noob).</p>
<p>This solution rocks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by Rob Anderson</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-30</link>
		<dc:creator>Rob Anderson</dc:creator>
		<pubDate>Sat, 08 Nov 2008 06:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-30</guid>
		<description>Hi there, this is a wonderful script and I have it working ... almost :)

It works fine from the command line via SSH running as root, but not via cron when it is presumably running under my cpanel account (iotaco in this case). This is the error I get emailed to me when the cron job runs:

...
/home/iotaco/backup/sql/20081107-iotaco_wceet.sql
which: no curl in (/usr/bin:/bin)
s3-put: Environment Error: curl not found on the path or not executable
...

So it works normally until it has to run curl in s3-put. I can confirm that curl is in the /usr/bin so not sure what is going wrong here.

I am a complete Linux noob so hoping somebody can give me some ideas to get this working!!

Here is my cron command:

0 0 * * * sh /home/iotaco/backup/de-website-backup-public.sh

BTW, I found I had to tweak the backup script to get this far, i.e. remove blank lines and modify the code to get multiple databases working, i.e.

$mysqldumpcmd $userpassword $dumpoptions ${database} &#62; ${backupdir}/sql/${DOW}-${database}.sql

Before I changed the above line it wouldn't work for multiple databases, now it does :)

Please help!</description>
		<content:encoded><![CDATA[<p>Hi there, this is a wonderful script and I have it working &#8230; almost <img src='http://duivesteyn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It works fine from the command line via SSH running as root, but not via cron when it is presumably running under my cpanel account (iotaco in this case). This is the error I get emailed to me when the cron job runs:</p>
<p>&#8230;<br />
/home/iotaco/backup/sql/20081107-iotaco_wceet.sql<br />
which: no curl in (/usr/bin:/bin)<br />
s3-put: Environment Error: curl not found on the path or not executable<br />
&#8230;</p>
<p>So it works normally until it has to run curl in s3-put. I can confirm that curl is in the /usr/bin so not sure what is going wrong here.</p>
<p>I am a complete Linux noob so hoping somebody can give me some ideas to get this working!!</p>
<p>Here is my cron command:</p>
<p>0 0 * * * sh /home/iotaco/backup/de-website-backup-public.sh</p>
<p>BTW, I found I had to tweak the backup script to get this far, i.e. remove blank lines and modify the code to get multiple databases working, i.e.</p>
<p>$mysqldumpcmd $userpassword $dumpoptions ${database} &gt; ${backupdir}/sql/${DOW}-${database}.sql</p>
<p>Before I changed the above line it wouldn&#8217;t work for multiple databases, now it does <img src='http://duivesteyn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by Week in Review (October 20 through October 26) &#124; GrandmasterB dot com</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-29</link>
		<dc:creator>Week in Review (October 20 through October 26) &#124; GrandmasterB dot com</dc:creator>
		<pubDate>Mon, 27 Oct 2008 20:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-29</guid>
		<description>[...] I should be able to grow the GMB Network on Media Temple, and if I get too big for the Grid Service I can move up to a Dedicated Virtual plan. One other note on moving my hosting, I also setup an account on the Amazon AWS to remotely backup my sites. After reading a tutorial by Christina Warren, I setup the necessary software and a shell script to do automatic backups of my site daily. The script took about 10 minutes to setup and another five minutes to setup my S3 account&#8230;after that it was all butter. Now every night at 1am my script runs and backs up the three sites I have on it, and uploads the zipped files to the Amazon S3 hosting. I&#8217;ve been running the S3 account for about two weeks now, and my bill is only 33 cents. If you want to backup your site automatically and have CPanel hosting checkout this tutorial. [...]</description>
		<content:encoded><![CDATA[<p>[...] I should be able to grow the GMB Network on Media Temple, and if I get too big for the Grid Service I can move up to a Dedicated Virtual plan. One other note on moving my hosting, I also setup an account on the Amazon AWS to remotely backup my sites. After reading a tutorial by Christina Warren, I setup the necessary software and a shell script to do automatic backups of my site daily. The script took about 10 minutes to setup and another five minutes to setup my S3 account&#8230;after that it was all butter. Now every night at 1am my script runs and backs up the three sites I have on it, and uploads the zipped files to the Amazon S3 hosting. I&#8217;ve been running the S3 account for about two weeks now, and my bill is only 33 cents. If you want to backup your site automatically and have CPanel hosting checkout this tutorial. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by Amazon S3 - The Beginner&#8217;s Guide &#124; Web Burning Blog</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-28</link>
		<dc:creator>Amazon S3 - The Beginner&#8217;s Guide &#124; Web Burning Blog</dc:creator>
		<pubDate>Sun, 19 Oct 2008 11:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-28</guid>
		<description>[...] Amazon s3 backup for web server files and SQL using bash [...]</description>
		<content:encoded><![CDATA[<p>[...] Amazon s3 backup for web server files and SQL using bash [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by Admin</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-27</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Fri, 26 Sep 2008 11:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-27</guid>
		<description>Cheers for all the comments so far guys, love the feeback.</description>
		<content:encoded><![CDATA[<p>Cheers for all the comments so far guys, love the feeback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by Amazon S3 - The Beginner&#8217;s Guide &#124; Web Tricks</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-25</link>
		<dc:creator>Amazon S3 - The Beginner&#8217;s Guide &#124; Web Tricks</dc:creator>
		<pubDate>Mon, 22 Sep 2008 12:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-25</guid>
		<description>[...] Amazon s3 backup for web server files and SQL using bash [...]</description>
		<content:encoded><![CDATA[<p>[...] Amazon s3 backup for web server files and SQL using bash [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by ebrodeur</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-24</link>
		<dc:creator>ebrodeur</dc:creator>
		<pubDate>Mon, 08 Sep 2008 06:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-24</guid>
		<description>Be sure to check where your TMP files are going. If your environment uses /tmp the last line of the de-website-backup-public.sh file must be changed to:

rm -rf /tmp/s3-*

If your environment uses a TMP folder located in your user home folder (ie: ~/tmp) the .sh file does not need to modified.

If you don't confirm this you will leave sensitive files in your TMP folder which may be compromised.

Another side effect is the script will not run successfully on the same host because the folders already exist.

Lastly, for multiple sites on a single host you should cron them sufficiently far apart to avoid concurrency problems with the TMP files.</description>
		<content:encoded><![CDATA[<p>Be sure to check where your TMP files are going. If your environment uses /tmp the last line of the de-website-backup-public.sh file must be changed to:</p>
<p>rm -rf /tmp/s3-*</p>
<p>If your environment uses a TMP folder located in your user home folder (ie: ~/tmp) the .sh file does not need to modified.</p>
<p>If you don&#8217;t confirm this you will leave sensitive files in your TMP folder which may be compromised.</p>
<p>Another side effect is the script will not run successfully on the same host because the folders already exist.</p>
<p>Lastly, for multiple sites on a single host you should cron them sufficiently far apart to avoid concurrency problems with the TMP files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by ebrodeur</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-23</link>
		<dc:creator>ebrodeur</dc:creator>
		<pubDate>Mon, 08 Sep 2008 05:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-23</guid>
		<description>Thanks, the script worked perfectly!

@themandril: look under "Download Here" which has a non-hyperlinked URL to the download; it begins with https://.

You'll need the s3-bash scripts which can be found by clicking the "s3-bash" link next to "References" at the bottom of the post.

Lastly, the s3.key file cannot contain any trailing characters such as newline. If so, the s3-bash scripts will die  (with an appropriate error displayed at the console).

As suggested by the author test via SSH to ensure the script is working properly.</description>
		<content:encoded><![CDATA[<p>Thanks, the script worked perfectly!</p>
<p>@themandril: look under &#8220;Download Here&#8221; which has a non-hyperlinked URL to the download; it begins with <a href="https://" rel="nofollow">https://</a>.</p>
<p>You&#8217;ll need the s3-bash scripts which can be found by clicking the &#8220;s3-bash&#8221; link next to &#8220;References&#8221; at the bottom of the post.</p>
<p>Lastly, the s3.key file cannot contain any trailing characters such as newline. If so, the s3-bash scripts will die  (with an appropriate error displayed at the console).</p>
<p>As suggested by the author test via SSH to ensure the script is working properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Add Sitemap To robots.txt For Autodiscovery by Bookmarks about Sitemap</title>
		<link>http://duivesteyn.net/2008/add-sitemap-to-robotstxt-for-autodiscovery/#comment-22</link>
		<dc:creator>Bookmarks about Sitemap</dc:creator>
		<pubDate>Fri, 05 Sep 2008 15:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/2008/add-sitemap-to-robotstxt-for-autodiscovery/#comment-22</guid>
		<description>[...] - bookmarked by 5 members originally found by MaGoog on 2008-08-14  Add Sitemap To robots.txt For Autodiscovery  http://duivesteyn.net/2008/add-sitemap-to-robotstxt-for-autodiscovery/ - bookmarked by 5 members [...]</description>
		<content:encoded><![CDATA[<p>[...] - bookmarked by 5 members originally found by MaGoog on 2008-08-14  Add Sitemap To robots.txt For Autodiscovery  <a href="http://duivesteyn.net/2008/add-sitemap-to-robotstxt-for-autodiscovery/" rel="nofollow">http://duivesteyn.net/2008/add-sitemap-to-robotstxt-for-autodiscovery/</a> - bookmarked by 5 members [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon s3 backup for web server files and SQL using bash by themandril</title>
		<link>http://duivesteyn.net/2008/amazon-s3-backup-for-webserver-public_html-sql-bash/#comment-21</link>
		<dc:creator>themandril</dc:creator>
		<pubDate>Mon, 01 Sep 2008 19:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=94#comment-21</guid>
		<description>I'm confused - where do we get the de-s3-web-backup.sh file?  Also, how would I customize it to only do a particular directory under html_public and a specific sql database that goes with it?</description>
		<content:encoded><![CDATA[<p>I&#8217;m confused - where do we get the de-s3-web-backup.sh file?  Also, how would I customize it to only do a particular directory under html_public and a specific sql database that goes with it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
