<?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>Rick's Rants and Raves &#187; Internet</title>
	<atom:link href="http://journal.nearbennett.com/category/internet/feed/" rel="self" type="application/rss+xml" />
	<link>http://journal.nearbennett.com</link>
	<description>I was wondering "why is that Frisbee getting bigger?" And then it hit me.</description>
	<lastBuildDate>Wed, 28 Jul 2010 03:18:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using winscp to back up my mom&#8217;s files</title>
		<link>http://journal.nearbennett.com/2008/09/03/using-winscp-to-back-up-my-moms-files/</link>
		<comments>http://journal.nearbennett.com/2008/09/03/using-winscp-to-back-up-my-moms-files/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 02:04:56 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2008/09/03/using-winscp-to-back-up-my-moms-files/</guid>
		<description><![CDATA[My mom has a computer, but it has been years since I encouraged her to have any sort of data backup plan. I have two low-cost, low pain (for her) options for attempting to secure her data.

Plug a USB drive into the back of her PC, and script an xcopy command (or something similar) so [...]]]></description>
			<content:encoded><![CDATA[<p>My mom has a computer, but it has been years since I encouraged her to have any sort of data backup plan. I have two low-cost, low pain (for her) options for attempting to secure her data.</p>
<ol>
<li>Plug a USB drive into the back of her PC, and script an xcopy command (or something similar) so that every hour or so, it copies her important files to the drive. This would be cheap (she doesn&#8217;t have that much data), and pretty easy. The solution would protect against drive failure, but not against robbery, fire, or flood.</li>
<li>Use <a href="http://winscp.net/eng/index.php">winscp</a> to securely copy her files over her internet connection to <a href="http://journal.nearbennett.com/index.php?s=nslu2">my NSLU2</a> network storage. This is more complicated, costs nothing but a bit of time to figure it out, and protects against all possible forms of data loss (unless our whole city is consumed with a fire or flood).</li>
</ol>
<p>Since I&#8217;m already <a href="http://skippy.net/offsite-backup">sharing my NSLU2 with Skippy</a>, and I&#8217;ve got <a href="http://journal.nearbennett.com/2008/03/12/my-first-terabyte/">way more space</a> than she&#8217;ll ever need, and I like a bit of a challenge, I&#8217;ll go with <a href="http://winscp.net/eng/index.php">winscp</a>.<br />
Some pre-requisites that I&#8217;ve already got set up:</p>
<ul>
<li>NSLU2 running <a href="http://www.nslu2-linux.org/wiki/Unslung/HomePage">Unslung</a>.</li>
<li><a href="http://www.nslu2-linux.org/wiki/HowTo/UseOpenSSHForRemoteAccess">Use OpenSSH for remote access</a>.</li>
<li>Forward a port on my router to the OpenSSH port on my NSLU2.</li>
<li>Establish an account with a Dynamic DNS host, such as <a href="http://dyndns.com">DynDNS.com</a>, and set up my router to check in with DynDNS to update my IP address periodically.</li>
</ul>
<p>Now, on to using winscp for this application.</p>
<ol>
<li>Download the &#8220;<a href="http://winscp.net/eng/download.php">portable</a>&#8221; version of winscp and  save it to a new directory. I renamed it from winscp416.exe to just winscp.exe.</li>
<li>Create a new user on my NSLU2 for my mom, and give the account ssh access.</li>
<li>Establish the first winscp session to my NSLU2 to save the security keys: winscp sftp://user:password@host:port</li>
<li>Save that session in winscp by choosing<strong> Save Session&#8230;</strong> from the Session menu. The default name was user@host, and I chose to keep the password.</li>
<li>Create a list of <a href="http://winscp.net/eng/docs/scripting">winscp commands</a>, and store them in winscp-commands.txt. The following commands will copy everything from the current directory structure to the home directory on the NSLU2.<br />
<blockquote><p>option batch on<br />
option confirm off<br />
option transfer binary<br />
synchronize remote -delete<br />
close<br />
exit</p></blockquote>
</li>
<li>Create a batch file, named backup-files.cmd with the following command<br />
winscp user@host /console /script=winscp-commands.txt</li>
<li>Set backup-files.cmd to run as a scheduled task.</li>
</ol>
<p>The &#8220;synchronize remote -delete&#8221; command will put all files from the local directory into the remote directory, deleting any files on the remote that have been removed from the local.</p>
<p>It is also possible to add multiple synchronize commands to this file, but be careful, because the remote directory must exist for the sync to work. For example:</p>
<blockquote><p>synchronize remote -delete &#8220;c:\documents and settings\me&#8221; /user/my_stuff</p></blockquote>
<p>will only work if the directory /user/my_stuff already exists.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2008/09/03/using-winscp-to-back-up-my-moms-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stranger Photos</title>
		<link>http://journal.nearbennett.com/2008/04/14/stranger-photos/</link>
		<comments>http://journal.nearbennett.com/2008/04/14/stranger-photos/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 12:33:07 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2008/04/14/stranger-photos/</guid>
		<description><![CDATA[I love this idea: tie a camera to a public bench, with a note instructing people to take pictures. Retrieve the pictures to see what people did.
http://theplug.net/28/strangerphotos.htm
It would be a fun project at Chautauqua, especially if the sign had a URL where people could go see their and others&#8217; photos. Chautauqua is such a trusting [...]]]></description>
			<content:encoded><![CDATA[<p>I love this idea: tie a camera to a public bench, with a note instructing people to take pictures. Retrieve the pictures to see what people did.</p>
<p><a href="http://theplug.net/28/strangerphotos.htm">http://theplug.net/28/strangerphotos.htm</a></p>
<p>It would be a fun project at Chautauqua, especially if the sign had a URL where people could go see their and others&#8217; photos. Chautauqua is such a trusting place, I could almost do it with a digital camera.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2008/04/14/stranger-photos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Twitter to Drive Blog Traffic</title>
		<link>http://journal.nearbennett.com/2008/03/12/using-twitter-to-drive-blog-traffic/</link>
		<comments>http://journal.nearbennett.com/2008/03/12/using-twitter-to-drive-blog-traffic/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 02:18:29 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2008/03/12/using-twitter-to-drive-blog-traffic/</guid>
		<description><![CDATA[Here&#8217;s an experiment to try:

Sign up for Twitter, if you haven&#8217;t already. If you don&#8217;t have an e-mail you want to share with them, use a dodgeit.com account.

Add a link to your blog (or a particular post) in a tweet.

Go to step 1, using a different username and dodgeit.com account.


Do this 5-10 times to get [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an experiment to try:</p>
<ol>
<li>Sign up for <a href="http://twitter.com">Twitter</a>, if you haven&#8217;t already. If you don&#8217;t have an e-mail you want to share with them, use a <a href="http://dodgeit.com">dodgeit.com </a>account.
</li>
<li>Add a link to your blog (or a particular post) in a tweet.
</li>
<li>Go to step 1, using a different username and <a href="http://dodgeit.com">dodgeit.com</a> account.
</li>
</ol>
<p>Do this 5-10 times to get your link onto the front page of <a href="http://www.s2n.com/pulse/twitter.com">http://www.s2n.com/pulse/twitter.com</a>. See how many hits you get.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2008/03/12/using-twitter-to-drive-blog-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Apps (for domains)</title>
		<link>http://journal.nearbennett.com/2008/02/03/google-apps-for-domains/</link>
		<comments>http://journal.nearbennett.com/2008/02/03/google-apps-for-domains/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 15:06:43 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2008/02/03/google-apps-for-domains/</guid>
		<description><![CDATA[I&#8217;ve recently had some difficulty finding an e-mail solution that works for me and my family. Until a week ago I had been using a Gmail account to manage multiple other accounts for myself. Since my primary address is a non-gmail address, I use the &#8220;send mail as&#8221; feature to use Gmail to send e-mail [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently had some difficulty finding an e-mail solution that works for me and my family. Until a week ago I had been using a Gmail account to manage multiple other accounts for myself. Since my primary address is a non-gmail address, I use the &#8220;send mail as&#8221; feature to use Gmail to send e-mail as a my primary account on nearbennett.com. The problem is that some clients receive my e-mails as &#8220;Sent on behalf of&#8221;. So people see both the Gmail account and my preferred account and aren&#8217;t sure which one is right. Replies come properly addressed, but I&#8217;m still annoyed by the &#8220;Sent on behalf of&#8221;.</p>
<p>I learned about <a href="https://www.google.com/a/">Google Apps</a> from <a href="http://skippy.net/google-for-domains">Skippy</a> a couple of months ago, and decided to give it a try.</p>
<p>Its an interesting concept that lets me manage various aspects of my domain through Google. Their instructions are complete and easy to follow for anyone who has heard of DNS. You don&#8217;t have to know the difference between a CNAME and an MX record. So I set up my Google account to manage e-mail and a &#8220;start&#8221; page. I expected they would be just like <a href="http://mail.google.com/mail/?hl=en&#038;tab=wm">Gmail</a> and <a href="http://www.igoogle.com">iGoogle</a>, respectively.</p>
<p>Unfortunately, the <a href="https://www.google.com/a/">Google Apps</a> versions of e-mail and iGoogle appear to be older versions. For example:</p>
<ul>
<li>The UI for GA e-mail is about 2 years old, compared with the current GMail version
</li>
<li>The GA e-mail client still has a bug that prevents users from editing imported contacts.
</li>
<li>The GA start page doesn&#8217;t allow multiple tabs, whereas the current iGoogle does.
</li>
<li>The GA start page doesn&#8217;t allow users (or admins) to customize the number of columns, but iGoogle does.
</li>
</ul>
<p>The other problem I currently have with my Google Apps is that it doesn&#8217;t have a version of Google Reader. So, to continue using Google reader, I have to maintain the Gmail account.</p>
<p>Oh well. So far, the Google Apps have been fun to experiment with, and functional enough. If Google Calendar had an off-line client, I might be able to convince my wife to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2008/02/03/google-apps-for-domains/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A New Referrer Spam</title>
		<link>http://journal.nearbennett.com/2007/12/18/a-new-referrer-spam/</link>
		<comments>http://journal.nearbennett.com/2007/12/18/a-new-referrer-spam/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 04:07:40 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2007/12/18/a-new-referrer-spam/</guid>
		<description><![CDATA[I think I&#8217;m getting a new kind of Referrer Spam on my piddly liddle blog. Wikipedia&#8217;s entry describes referrer spam as aimed at sites who make their referrers public. I don&#8217;t. I publicize search engine keywords that people used to find me, but not the actual referrers.
What I&#8217;m seeing in my site stats is a [...]]]></description>
			<content:encoded><![CDATA[<p>I think I&#8217;m getting a new kind of <a href="http://en.wikipedia.org/wiki/Referer_spam">Referrer Spam</a> on my piddly liddle blog. Wikipedia&#8217;s entry describes referrer spam as aimed at sites who make their referrers public. I don&#8217;t. I publicize <a href="http://journal.nearbennett.com/search-terms.php">search engine keywords</a> that people used to find me, but not the actual referrers.</p>
<p>What I&#8217;m seeing in my site stats is a handful of sites that claim to link to me, but are really porn sites that seem to be hoping I&#8217;ll click through. Have porm spammers figured out that bloggers tend to be a self-satisfied lot that want to know just how popular we are? Well then, what better way to fool us than let us believe we&#8217;ve been linked by some new web page.</p>
<p>Incidentally, I&#8217;m not going to mention the URLs in full because I don&#8217;t want them to see their site mentioned anywhere. If you are interested, the base of the URL looks like this, without the @ signs.</p>
<p>http://i@s@m@y@m@o@v@i@e@s@.@c@o@m</p>
<p>There was more to the URL at the end, but I assumed that the last bits were just for tracking who gets clicks through, kind of like embedding a special code in a graphic so that they know you viewed their spam e-mail. If someone clicks through, their site will suddenly be on the list of &#8220;suckers&#8221; who will click through anything.</p>
<p>Unfortunately, I don&#8217;t think there&#8217;s much I can do about it. I do look at my incoming links, but now I&#8217;ll have to be more skeptical if the name doesn&#8217;t seem to make much sense or have any relevance to my site.</p>
<p>Update: it turns out that every fake referrer that I&#8217;ve received has come from the same IP address: 87.118.120.23. I think my next PHP script will be a WordPress plugin to always give that IP address a 50 MB file of garbage&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2007/12/18/a-new-referrer-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Influence on the World</title>
		<link>http://journal.nearbennett.com/2007/11/30/my-influence-on-the-world/</link>
		<comments>http://journal.nearbennett.com/2007/11/30/my-influence-on-the-world/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 18:00:26 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2007/11/30/my-influence-on-the-world/</guid>
		<description><![CDATA[I&#8217;m always interested to see how people come to find my site. Of course, nearly anyone who blogs is a link whore. I also like to monitor how people found me via search engines. The Wordpress plugin Firestats does a very nice job of showing me the search terms used. But I want to brag [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m always interested to see how people come to find my site. Of course, nearly anyone who blogs is a link whore. I also like to monitor how people found me via search engines. The Wordpress plugin <a href="http://firestats.cc/">Firestats</a> does a very nice job of showing me the search terms used. But I want to brag to the world how other people are finding me.</p>
<p>My web host allows me to enable AWStats on my sub-domains. I have it enabled on journal.nearbennett.com, and I check all the stats periodically. For example, it was really fascinating to see a bunch of hits come from Stumble Upon for my <a href="http://journal.nearbennett.com/2006/10/20/harddrive-clock/">hard drive clock</a> post. AWStats has a lot of good information that I&#8217;m not sure I want to share with the whole world, so I have the whole directory structure protected. But I want people to be able to see what search terms are leading people to my site. So I created a very small PHP script to by-pass the protection, and allow someone to view <a href="http://journal.nearbennett.com/search-terms.php">My Influence on the World</a>.</p>
<p>Here is that PHP code for you to enjoy.<br />
<code>#!/usr/local/bin/php4.cli<br />
< ?php<br />
include_once("../../awstats/journal/awstats.journal.nearbennett.com.keyphrases.html");</p>
<p>?></code></p>
<p>Yeah, I know its not much to be proud of, but hey, it works. And its like the third thing I&#8217;ve ever done with PHP (the first was of course &#8216;<a href="http://www.nearbennett.com/php/hello.php">hello world</a>&#8216;).</p>
<p>I&#8217;m pleased to report that if you <a href="http://www.google.com/search?q=hard+drive+clock&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;rls=org.mozilla:en-US:official&#038;client=firefox-a">search Google for hard drive clock</a>, my post is the third on the list behind Make. Yes, I did that a while ago, but please allow me to bask in my glory a little while longer.</p>
<p>Oh, and now people are <a href="http://cgi.ebay.com/NOVELTY-CLOCK-hand-crafted-from-PC-computer-hard-drive_W0QQitemZ200178062758QQihZ010QQcategoryZ3933QQssPageNameZWDVWQQrdZ1QQcmdZViewItem">selling hard drive clocks on eBay</a>. I particularly like this quote:</p>
<blockquote><p> There are very few of these in existence, probably less than 20.</p></blockquote>
<p>Yeah, right. I&#8217;ve made three my self. And considering <a href="http://www.etsy.com/view_listing.php?listing_id=6123428">this place sold out</a>, I&#8217;m pretty sure there are more than 20 of these things out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2007/11/30/my-influence-on-the-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hard Drive Dominoes</title>
		<link>http://journal.nearbennett.com/2006/12/15/hard-drive-dominoes/</link>
		<comments>http://journal.nearbennett.com/2006/12/15/hard-drive-dominoes/#comments</comments>
		<pubDate>Fri, 15 Dec 2006 13:59:25 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Techno-Craft]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2006/12/15/hard-drive-dominoes/</guid>
		<description><![CDATA[These dudes clearly have an unnatural obsession with hard drives, just like me.
I love it. Unfortunately all my drives are ripped apart now, and I never had quite that quantity. Hm, maybe there is something else I could dream up&#8230;

]]></description>
			<content:encoded><![CDATA[<p>These dudes clearly have an unnatural obsession with hard drives, <a href="http://journal.nearbennett.com/2006/12/13/hard-drive-refridgerator-magnets/">just</a> <a href="http://journal.nearbennett.com/2006/12/04/the-42-gigabyte-hard-drive-mirror/">like</a> <a href="http://journal.nearbennett.com/2006/10/20/harddrive-clock/">me</a>.</p>
<p>I love it. Unfortunately all my drives are ripped apart now, and I never had quite that quantity. Hm, maybe there is something else I could dream up&#8230;</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/YocnQ0NMTUA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/YocnQ0NMTUA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2006/12/15/hard-drive-dominoes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Ultimate Measure of NSLU2 Speed</title>
		<link>http://journal.nearbennett.com/2006/12/09/the-ultimate-measure-of-nslu2-speed/</link>
		<comments>http://journal.nearbennett.com/2006/12/09/the-ultimate-measure-of-nslu2-speed/#comments</comments>
		<pubDate>Sat, 09 Dec 2006 17:22:14 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/2006/12/09/the-ultimate-measure-of-nslu2-speed/</guid>
		<description><![CDATA[There is a lot of noise about how slow the NSLU2 is. The real question is, Is it fast enough to do the things you want to do? I present as an example that the NSLU2 is &#8220;fast enough&#8221; this situation:

One of my computers was downloading some large files to the NSLU2&#8217;s drives taking up [...]]]></description>
			<content:encoded><![CDATA[<p>There is a lot of noise about how slow the NSLU2 is. The real question is, Is it fast enough to do the things you want to do? I present as an example that the NSLU2 is &#8220;fast enough&#8221; this situation:</p>
<ul>
<li>One of my computers was downloading some large files to the NSLU2&#8217;s drives taking up my full DSL bandwidth.</li>
<li>Simultaneously, on another computer I was watching a video that had been previously stored on the NSLU2. It was a 42 minute video, at roughly 350MB. There were no hiccups or interruptions.</li>
</ul>
<p>What is the total bandwidth of these two activities? Who cares!?! The point is that it did what I needed it to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2006/12/09/the-ultimate-measure-of-nslu2-speed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Rocks</title>
		<link>http://journal.nearbennett.com/2006/12/03/google-rocks/</link>
		<comments>http://journal.nearbennett.com/2006/12/03/google-rocks/#comments</comments>
		<pubDate>Sun, 03 Dec 2006 05:05:16 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Rave]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/?p=41</guid>
		<description><![CDATA[As I was looking at sites that linked to my Hard Drive Clock  I was intrigued to find a Russian site: http://mobbit.info/item/2095. I tried to see if Google language tools would translate the Russian site (specifically the comments), and I noticed that you can view Google in Elmer Fudd. That kind of sense of [...]]]></description>
			<content:encoded><![CDATA[<p>As I was looking at sites that linked to my <a href="http://journal.nearbennett.com/?p=37">Hard Drive Clock</a>  I was intrigued to find a Russian site: <a href="http://mobbit.info/item/2095">http://mobbit.info/item/2095</a>. I tried to see if Google language tools would translate the Russian site (specifically the comments), and I noticed that you can <a href="http://www.google.com/intl/xx-elmer/">view Google in Elmer Fudd</a>. That kind of sense of humor just plain rocks.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2006/12/03/google-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSLU2 Offsite Storage</title>
		<link>http://journal.nearbennett.com/2006/12/02/nslu2-offsite-storage/</link>
		<comments>http://journal.nearbennett.com/2006/12/02/nslu2-offsite-storage/#comments</comments>
		<pubDate>Sat, 02 Dec 2006 16:41:52 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://journal.nearbennett.com/?p=40</guid>
		<description><![CDATA[Updated 9/11/2007: MediaMax, mentioned below, stopped allowing FTP connections earlier this year. My off-site solution is better described by Skippy. End Update.
OK, I have an NSLU2 with two 80GB drives attached, working swimmingly on my network. I have gone through the not-too-difficult process of making it &#8220;Unslung&#8221; so that I can thoroughly modify it to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Updated 9/11/2007: MediaMax, mentioned below, stopped allowing FTP connections earlier this year. My off-site solution is better described by <a href="http://skippy.net/offsite-backup">Skippy</a>.</strong> End Update.</p>
<p>OK, I have an NSLU2 with two 80GB drives attached, working swimmingly on my network. I have gone through the not-too-difficult process of making it &#8220;Unslung&#8221; so that I can thoroughly modify it to my hearts content.</p>
<p>After the Unslung, the backup from drive 1 to drive 2 didn&#8217;t work. The error message was incredibly vague:</p>
<p><tt>11/13 02:09:04 Drive Backup: Backup fail.<br />
11/13 02:00:00 Drive Backup: Backup start. </tt></p>
<p>It looked like it was working&#8211;files were being copied from one drive to the other. A little Googling turned up this message: <a href="http://www.nslu2-linux.org/wiki/HowTo/FixTheDriveBackupForUnslungFirmware">http://www.nslu2-linux.org/wiki/HowTo/FixTheDriveBackupForUnslungFirmware</a></p>
<p>I followed the instructions, and got it working fine.</p>
<p>All this attention to the backup solution reminded me that my method for taking files offsite was less than ideal&#8211;for my family photos, I burned a DVD every (ahem, cough) 6 months or so, and took them to work.</p>
<p>So again,  I searched around for NSLU2 Offsite solutions. I found <a href="http://blog.eberly.org/2006/10/09/how-automate-your-backup-to-amazon-s3-using-s3sync/">a guy who had made it work with Amazon&#8217;s S3 service</a>. I estimated how much it would cost to store my 5GB of photos on S3, and it looks like it would be less than $15 per year. Not too shabby at all. Perhaps I&#8217;ll go that route if this one doesn&#8217;t work.</p>
<p>I then came across a service from <a href="http://www.mediamax.com">MediaMax.com</a>. Free storage up to 25GB, with restrictions only on download, not upload. Also, they have an FTP service to make scripting from Linux possible.</p>
<p>So, I grabbed an account, and started playing with it. One of the limitations of the FTP service is that it is one-way on MediaMax. After you transfer a file to the FTP service, it gets moved to the real storage portal. So, I have to be able to remember locally which files have already been sent. I accomplished this by removing the User execute bit from the file I just transferred. This translates through Samba as the Archive bit in Windows. So it is easy to see from my Windows system whether a file has been sent offsite or not. So I wrote a BASH script to do the job. It&#8217;s quick. It&#8217;s dirty. It has been 6 years since I wrote shell scripts at work, so my techniques are probably a little rusty. So, if you want to use my script, here is what you need to do.</p>
<ol>
<li>(I assume you have an NSLU2 with one or more drives attached. I also assume you know how to telnet and edit files in vi or some other editor).</li>
<li><a href="http://www.nslu2-linux.org/wiki/Unslung/HomePage">Unslung</a></li>
<li>Install bash: ipkg install bash</li>
<li>Get an account with <a href="http://www.mediamax.com">MediaMax.com</a> (I am not a shill, they just happened to be the first I found with the features I wanted. Its free anyway)</li>
<li>Copy my script to your system in the location of your choice.</li>
<li>Modify the variables at the top. Note that MediaMax&#8217;s FTP service has the password set the same as the username. So if your user name is &#8220;MotherGrove&#8221;, in FTP only, your password will also be &#8220;MotherGrove&#8221;. I used two separate variables just in case that changes some day.</li>
<li>Add an entry to /etc/crontab to run the script periodically.</li>
</ol>
<blockquote><p>#!/bin/bash<br />
IFS=&#8221;<br />
UPLOAD=/full/path/of/the/files/you/want/to/store/offsite<br />
WORK=/full/path/where/you/want/the/log/file<br />
SERVER=ftp.mediamax.com<br />
USER=YOURUSERNAME<br />
PASS=YOURUSERNAME<br />
function call_ftp {<br />
eval FULL=$*<br />
echo $FULL<br />
DIR=`dirname &#8220;$FULL&#8221;`<br />
FILE=`basename &#8220;$FULL&#8221;`<br />
cd &#8220;$DIR&#8221;<br />
echo `date` $FULL Starting FTP >> $WORK/offsite.log<br />
ftp -in < open $SERVER<br />
user $USER $PASS<br />
bin<br />
put "$FILE"<br />
quit<br />
EOF</p>
<p>echo `date` $FULL FTP Exit Status:$? >> $WORK/offsite.log<br />
chmod ug-x &#8220;$FULL&#8221;<br />
echo `date` $FULL CHMOd Exit Status:$? >> $WORK/offsite.log<br />
}<br />
if (($#==1)); then<br />
call_ftp $*<br />
exit 0<br />
fi</p>
<p>find $UPLOAD -type f -perm -u=x -maxdepth 2 -exec $0 &#8216;&#8221;{}&#8221;&#8216; \;</p></blockquote>
<p><strong>Limitations</strong> (or future features)</p>
<ul>
<li>This script does NOT mimic your directory structure on MediaMax. All the files will be dumped in your &#8220;Uploaded Files&#8221; folder. If I ever need to download these, I&#8217;ll recreate the folder structure.</li>
<li>FTP is very poor at reporting errors. I don&#8217;t know with certainty that the files are actually transferring. I just spot check my account on MediaMax to be sure I see them.</li>
<li>Depending on your upload speed, it might take a few days to do the first upload. This script is not smart enough to check and see if it is already running, so you might want your initial CRON entry to be once a week.</li>
<li>There is not a graceful way to stop it from running. I&#8217;ll probably add that in later.</li>
<li>There is no upload throttling. If this matters to you, hopefully you have a router with QOS, (or one that can be hacked to provided QOS).</li>
<li>Files are stored unencrypted in your account on MediaMax. I do not know how robust their security policies. If you send sensitive information, please encrypt it before you send it offsite.</li>
</ul>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.nearbennett.com/2006/12/02/nslu2-offsite-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
