<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Muziboo Development Blog &#187; amazon-s3</title>
	<atom:link href="http://devblog.muziboo.com/category/amazon-s3/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.muziboo.com</link>
	<description>Muziboo development stories. Mostly set in ruby land</description>
	<lastBuildDate>Fri, 01 Apr 2011 04:52:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>s3sync yml file gotcha</title>
		<link>http://devblog.muziboo.com/2008/06/12/s3sync-yml-file-gotcha/</link>
		<comments>http://devblog.muziboo.com/2008/06/12/s3sync-yml-file-gotcha/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 07:37:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[amazon-s3]]></category>
		<category><![CDATA[aws keys]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[s3sync]]></category>
		<category><![CDATA[yml]]></category>

		<guid isPermaLink="false">http://prateekdayal.net/tech/?p=10</guid>
		<description><![CDATA[
			
				
			
		
s3sync is a nice ruby utility for backing up data on s3. It works much like rsync (but not completely like it). There are several way to configure the keys but if you are using the yml approach, you need to watchout for this little gotcha
If you are specifying the aws access key and secret [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdevblog.muziboo.com%2F2008%2F06%2F12%2Fs3sync-yml-file-gotcha%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdevblog.muziboo.com%2F2008%2F06%2F12%2Fs3sync-yml-file-gotcha%2F&amp;source=muziboo&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://s3sunc.net" onclick="javascript:pageTracker._trackPageview('/outbound/article/s3sunc.net');">s3sync</a> is a nice ruby utility for backing up data on s3. It works much like rsync (but not completely like it). There are several way to configure the keys but if you are using the yml approach, you need to watchout for this little gotcha</p>
<p>If you are specifying the aws access key and secret key in the s3config.yml file you need to make a small change in s3config.rb file. In s3config.rb you need to <a href="http://s3sync.net/forum/index.php?topic=168.0" onclick="javascript:pageTracker._trackPageview('/outbound/article/s3sync.net');">change</a> the confpath variable to</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">confpath = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;./&quot;</span>, <span style="color:#996600;">&quot;#{ENV['S3CONF']}&quot;</span>, <span style="color:#996600;">&quot;#{ENV['HOME']}/.s3conf&quot;</span>, <span style="color:#996600;">&quot;/etc/s3conf&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span></pre></td></tr></table></div>

<p>This makes sure that s3config.rb picks up the config file from same directory too. Once you make this change, s3cmd.rb and s3sync.rb should start working fine. After that you can use it pretty much like rsync and schedule it with cron. If you don&#8217;t want to load your cpu too much use the &#8211;no-md5 option (check the readme file in the package)</p>
<p>Do keep a watch on your s3 bill though .. everytime you try to sync, fetching the list of files etc also costs some money.</p>
]]></content:encoded>
			<wfw:commentRss>http://devblog.muziboo.com/2008/06/12/s3sync-yml-file-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

