<?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>compu.terlicio.us &#187; web service</title>
	<atom:link href="http://compu.terlicio.us/tag/web-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://compu.terlicio.us</link>
	<description>Flying, Computers, and Food</description>
	<lastBuildDate>Fri, 25 Nov 2011 01:16:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Flig.ht Data API</title>
		<link>http://compu.terlicio.us/2009/10/flig-ht-data-api/</link>
		<comments>http://compu.terlicio.us/2009/10/flig-ht-data-api/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 09:07:30 +0000</pubDate>
		<dc:creator>Christopher O'Connell</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flying]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[flig.ht]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://compu.terlicio.us/?p=150</guid>
		<description><![CDATA[One of my side projects has lead to the creation of a new aviation and geo data API. The RESTful interface isn&#8217;t public quite yet, but there are some examples which are running on live data. Head over to Flig.ht Data and check it out! UPDATE: Yeah, that didn&#8217;t go anywhere on it&#8217;s own. But [...]]]></description>
			<content:encoded><![CDATA[<p>One of my side projects has lead to the creation of a new aviation and geo data API. The RESTful interface isn&#8217;t public quite yet, but there are some examples which are running on live data.</p>
<p>Head over to <a href="http://data.flig.ht/">Flig.ht Data</a> and check it out!</p>
<p><b>UPDATE:</b> Yeah, that didn&#8217;t go anywhere on it&#8217;s own. But stay tuned for a serious aviation player to re-launch it.</p>
]]></content:encoded>
			<wfw:commentRss>http://compu.terlicio.us/2009/10/flig-ht-data-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up to S3: Part 1 &#8212; Install s3sync.rb</title>
		<link>http://compu.terlicio.us/2008/04/backing-up-to-s3-part-1-install-s3syncrb/</link>
		<comments>http://compu.terlicio.us/2008/04/backing-up-to-s3-part-1-install-s3syncrb/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 04:49:31 +0000</pubDate>
		<dc:creator>Christopher O'Connell</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[backing-up-to-s3]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://compu.terlicio.us/?p=35</guid>
		<description><![CDATA[In the introduction, I introduced you to the Amazon S3 service, and you signed up (that&#8217;s ok, you can pause me and do it now). Before we can start stuffing all our digital crap into the cloud, however, we need some tools. Put down the hammer, though, because these are Ruby tools, specifically, the s3sync [...]]]></description>
			<content:encoded><![CDATA[<p>In <a title="Baking up to S3: Introduction" href="http://compu.terlicio.us/2008/04/backing-up-to-s3-introduction/">the introduction</a>, I introduced you to the <a title="Simple Storage Service" href="http://www.amazon.com/S3-AWS-home-page-Money/b/ref=sc_fe_l_2?ie=UTF8&amp;node=16427261&amp;no=3440661&amp;me=A36L942TSJ2AJA">Amazon S3</a> service, and you <a title="Sign Up for S3" href="http://www.amazon.com/S3-AWS-home-page-Money/b/ref=sc_fe_l_2?ie=UTF8&amp;node=16427261&amp;no=3440661&amp;me=A36L942TSJ2AJA">signed up</a> (that&#8217;s ok, you can pause me and do it now). Before we can start stuffing all our digital crap into the cloud, however, we need some tools. Put down the hammer, though, because these are <a title="A " href="http://www.ruby-lang.org/">Ruby</a> tools, specifically, the <a title="Like rsync to S3" href="http://s3sync.net/">s3sync tools</a>.</p>
<p><span id="more-35"></span></p>
<h4>Prepare the System:</h4>
<p>In order to install the s3sync tools you will need ruby and libopenssl-ruby to be installed on your system. I will be using the yum command found on Fedora and RHEL. If you use a ubuntu or some other debian system, simply substitute the command apt-get for yum. In addition, I like nano for this type of editing, substitute a text editor of your choice.</p>
<p>Install ruby (note, on some systems, libopenssl-ruby may be part of the ruby package, in which case, it will tell you that it cannot be found. That&#8217;s ok, it installed as part of ruby):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> ruby libopenssl-ruby</pre></div></div>

<p>Now check and make sure that worked, the exact version isn&#8217;t important as long as it is 1.8.4 or greater:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> ruby <span style="color: #660033;">--version</span>
ruby 1.8.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2008</span>-03-03 patchlevel <span style="color: #000000;">114</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i386-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Once you have ruby, download and unzip the s3sync package. You should probably do this in a location that makes sense for saving a program, like /usr/bin, or similar. Well also clean up after ourselves and delete the now useless archive:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>s3.amazonaws.com<span style="color: #000000; font-weight: bold;">/</span>ServEdge_pub<span style="color: #000000; font-weight: bold;">/</span>s3sync<span style="color: #000000; font-weight: bold;">/</span>s3sync.tar.gz
$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf s3sync.tar.gz
$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> s3sync.tar.gz</pre></div></div>

<h4>Configure <code>s3sync</code>:</h4>
<p>With s3sync installed, you need to configure it to work with your amazon S3 settings. The first step is to download and install encryption certificates:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> certs
$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> certs
$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirbsd.mirsolutions.de<span style="color: #000000; font-weight: bold;">/</span>cvs.cgi<span style="color: #000000; font-weight: bold;">/</span>~checkout~<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl.certs.shar</pre></div></div>

<p><em> Note the trailing <code>~</code> on the token <code>~checkout~</code>. Without this extra tilde, the checkout will not work.</em></p>
<p>Finally, you need to set up the configuration file with you S3 access key ID and secret access key:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> ..                  <span style="color: #000000; font-weight: bold;">//</span> Gets us back to the <span style="color: #ff0000;">'s3sync'</span> directory
$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> s3config.yml.example</pre></div></div>

<p>Fill in the access key and secret key, as well as the certificate path, something like <code>/usr/bin/s3sync/certs</code> (assuming you followed my location). Save the file as s3config.yml.</p>
<p>Once the configuration is completed, you need to tell s3sync <em>where</em> the config file lives. In addition, we&#8217;ll alias the s3sync and s3cmd instructions so that they can be used anywhere in the shell, just like any other command. To do this, we&#8217;ll open the <code>.bash_profile</code> configuration file and add a few lines.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> ~
$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> .bash_profile</pre></div></div>

<p>Once in the file, add the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="apache_log" style="font-family:monospace;"># S3sync section
export S3CONF=&quot;/usr/bin/s3sync&quot;
alias s3cmd=&quot;/usr/bin/s3sync/s3cmd.rb&quot;
alias s3sync=&quot;/usr/bin/s3sync/s3sync.rb&quot;</pre></div></div>

<p>Log out and back in (or touch the file) and you should be all set up to run s3sync and s3cmd.</p>
<h4>Test the Install:</h4>
<p>Now that we&#8217;re through the hard part of setting up s3sync, we just need to test out our install. Take a shot of something spirituous, close your eyes, and test s3sync by typing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> .<span style="color: #000000; font-weight: bold;">/</span>s3cmd.rb
Need a <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>etc<span style="color: #7a0874; font-weight: bold;">&#41;</span>
s3cmd.rb . . .</pre></div></div>

<p>Congratulations! You&#8217;re ready to become a lean, mean, backed-up machine.</p>
<p>Special thanks to John Eberly, for his <a href="http://blog.eberly.org/2006/10/09/how-automate-your-backup-to-amazon-s3-using-s3sync/">brilliant article</a>, upon which this section is heavily based.</p>
]]></content:encoded>
			<wfw:commentRss>http://compu.terlicio.us/2008/04/backing-up-to-s3-part-1-install-s3syncrb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Backing up to S3: Introduction</title>
		<link>http://compu.terlicio.us/2008/04/backing-up-to-s3-introduction/</link>
		<comments>http://compu.terlicio.us/2008/04/backing-up-to-s3-introduction/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 23:59:10 +0000</pubDate>
		<dc:creator>Christopher O'Connell</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[backing-up-to-s3]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://compu.terlicio.us/?p=34</guid>
		<description><![CDATA[It is generally accepted that regular backups to an &#8216;offsite&#8217; location are a good idea &#8212; much like regular exercise. Since you&#8217;re reading this, you probably have trouble with both regular exercise and regular backups. It is beyond my ability to help with the exercise, but with the magic of the Amazon S3 service, I [...]]]></description>
			<content:encoded><![CDATA[<p>It is generally accepted that regular backups to an &#8216;offsite&#8217; location are a good idea &#8212; much like regular exercise. Since you&#8217;re reading this, you probably have trouble with both regular exercise and regular backups. It is beyond my ability to help with the exercise, but with the magic of the Amazon S3 service, I can help you with regular, offsite backups.</p>
<p><span id="more-34"></span></p>
<p><strong>The &#8216;Simple Storage Service&#8217;:</strong></p>
<p>To quote the Simple Storage Service (S3) website:</p>
<blockquote><p>Amazon S3 is storage for the Internet. It is designed to make web-scale computing easier for developers.</p>
<p>Amazon S3 provides a simple web services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web. It gives any developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on to developers.</p></blockquote>
<p>In plainer language, S3 is unlimited storage space at rock bottom prices. It&#8217;s also fast. Really fast. In fact, it&#8217;s so fast that <em>your server</em> will probably be the limiting link in how fast you can send data. But that&#8217;s ok, because when we are done, the backup process will run in the background</p>
<p><strong>The cost:</strong></p>
<p>&#8220;Pretty nifty,&#8221; you say to yourself, &#8220;but how much does all this &#8216;computing in the cloud&#8217; goodness cost?&#8221; An excellent question.</p>
<p>While the S3 <a title="S3 Rates" href="http://www.amazon.com/S3-AWS-home-page-Money/b/ref=sc_fe_l_2?ie=UTF8&amp;node=16427261&amp;no=3440661&amp;me=A36L942TSJ2AJA">rates</a> are subject to change, at the current rates, 10 GB &#8212; yes you read that correctly, 10 Gigabytes &#8212; of monthly storage with 20 GB of monthly transfer would cost you about US$3.50 per month. Rates are slightly higher in Europe. In addition, Amazon provides a nice little <a title="S3 Damage Meter" href="http://calculator.s3.amazonaws.com/calc5.html">calculator</a> to help you figure out the damage.</p>
<p><strong>The Set-Up:</strong></p>
<p>So how do you get started backing up with the Amazon S3 service? Very simply. Simply <a title="Sign up for S3" href="http://www.amazon.com/S3-AWS-home-page-Money/b/ref=sc_fe_l_2?ie=UTF8&amp;node=16427261&amp;no=3440661&amp;me=A36L942TSJ2AJA">sign up</a> for an account and then follow one of the links below to a tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://compu.terlicio.us/2008/04/backing-up-to-s3-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

