<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Stephen Foskett, Pack Rat &#187; rsync Archives  &#8211; Stephen Foskett, Pack Rat</title>
	<atom:link href="http://blog.fosketts.net/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fosketts.net</link>
	<description>Understanding the accumulation of data</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>Keep Multiple Macs in Sync with Dropbox</title>
		<link>http://blog.fosketts.net/2011/03/03/multiple-macs-sync-dropbox/</link>
		<comments>http://blog.fosketts.net/2011/03/03/multiple-macs-sync-dropbox/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 18:30:42 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Everything]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[MacDropAny]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[Unison]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=5040</guid>
		<description><![CDATA[I love my 27" iMac, but it's a little tough to take it on the road. So I like to keep my Documents folder in sync between it and my MacBook pro. I've recently switched to a new method that uses cloud storage service, Dropbox, and am thrilled with the result. Read on for my document synchronization formula!]]></description>
			<content:encoded><![CDATA[<p>I love my 27&#8243; iMac, but it&#8217;s a little tough to take it on the road. So I like to keep my Documents folder in sync between it and my MacBook pro. I&#8217;ve recently switched to a new method that uses cloud storage service, Dropbox, and am thrilled with the result. Read on for my document synchronization formula!</p>
<blockquote><p>You might also want to read <a href="http://blog.fosketts.net/2011/03/01/google-dropbox-revolutionized-laptop-migration/" >How Google and Dropbox Revolutionized My Laptop Migration</a></p></blockquote>
<h3>The Challenge of Synchronization</h3>
<p>Keeping multiple machines &#8220;in sync&#8221; has always been a challenge. Ever since struggling with LapLink way back in the 1990&#8242;s, I&#8217;ve been looking for a better way.</p>
<p>Once I moved to Mac OS X, with its UNIX underpinnings, I began using rsync to move data back and forth. But rsync needs to be pointed in the right direction: It&#8217;s great for making sure the latest version of &#8220;this&#8221; is &#8220;over there&#8221; but not much help when trying to determine which is newer.</p>
<p>Early last year, I switched to the excellent open-source application, <a href="http://www.cis.upenn.edu/~bcpierce/unison/" >Unison</a>. Like rsync, Unison optimizes the movement of data between multiple machines. But it detects which data is newer on a file-by-file basis and prompts before acting.</p>
<p>But Unison only runs on demand and requires interaction and attention. I also didn&#8217;t feel comfortable exposing it to the Internet, so both computers had to be on the same LAN.</p>
<h3>Introducing Dropbox</h3>
<p>I never expected <a href="http://db.tt/j1wYQ4N" >Dropbox</a> to be part of my dream synchronization solution, but that&#8217;s what it&#8217;s become. Dropbox mirrors local data to the cloud, allowing files to be made available through a web browser or mobile app. It can share a folder between multiple computers, and even multiple users.</p>
<div id="attachment_5042" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://static.fosketts.net/wp-content/uploads/2011/03/Slide11.jpg" ><img class="size-medium wp-image-5042" title="Basic Dropbox Configuration" src="http://static.fosketts.net/wp-content/uploads/2011/03/Slide11-300x225.jpg" alt="" width="300" height="225" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">By default, Dropbox syncs a cache folder with the cloud, rather than data in other locations</p></div>
<p>But data in Dropbox &#8220;lives&#8221; in Dropbox. Drag a file into your Dropbox folder and it now &#8220;lives&#8221; in the Dropbox cache and cloud. If the cache exists on the same drive as the original location, the file will be moved; it it is on another disk, a copy will be made. Either way, the original location is no longer relevant: Only the copy in the Dropbox folder will be synchronized.</p>
<h3>Symlink to Sync</h3>
<p>But I didn&#8217;t want to live out of the cache folder. I wanted my data to remain in my Documents folder. It&#8217;s not obvious how to do this with Dropbox, but <a href="http://www.pxc.me.uk/misc/dropbox_mac_use.html"  target="_blank">a few FAQs</a> and tools exist to make it happen.</p>
<div id="attachment_5043" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://static.fosketts.net/wp-content/uploads/2011/03/Slide2.jpg" ><img class="size-medium wp-image-5043" title="Dropbox Sync Configuration" src="http://static.fosketts.net/wp-content/uploads/2011/03/Slide2-300x225.jpg" alt="" width="300" height="225" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Put a symbolic link in the Dropbox cache folder and it will sync files from any location!</p></div>
<p>The Dropbox application will follow symbolic links in the cache to discover data to synchronize, and this is the secret. Simply create a symbolic link (&#8220;symlink&#8221; for short) to another folder and you can leave your data wherever you want to!</p>
<p>There are two essential tricks to make this happen:</p>
<ol>
<li>The folder symlinks in the Dropbox cache folder must have the same name</li>
<li>Dropbox must be turned off on all but one computer when initially setting all this up</li>
</ol>
<p>A great little app called <a href="http://wiki.dropbox.com/DropboxAddons/MacDropAny" >MacDropAny</a> even exists to facilitate this process, and it&#8217;s not too difficult if you follow these rules.</p>
<h3>Step By Step Instructions</h3>
<p>Make sure you follow these instructions to the letter. Failure to turn off Dropbox, for example, can result in data loss! Good thing Dropbox keeps old copies available for recovery!</p>
<p>These instructions assume you have two Apple Macintosh computers, named &#8220;Computer 1&#8243; and &#8220;Computer 2&#8243;, and that the <a href="http://db.tt/j1wYQ4N" >Dropbox</a> client and <a href="http://wiki.dropbox.com/DropboxAddons/MacDropAny" >MacDropAny</a> application are installed on both. A similar method will presumably work with Windows computers, but that&#8217;s left as an exercise for the reader!</p>
<blockquote><p>Note: You must start with exactly-identical folders on both computers. The easiest way to ensure this is illustrated below, but there are other methods (rsync, for example).</p></blockquote>
<ol>
<li>In Finder on Computer 1, drag a folder from any location and drop it on the MacDropAny application in the Applications folder. For example, I dropped the folder, &#8220;~/Documents/Example&#8221;.</li>
<li>MacDropAny will ask where to create the link. Select a location in your Dropbox cache. For example, I created a folder called &#8220;~/Dropbox/Documents&#8221; and selected that.</li>
<li>MacDropAny will ask what to name this symlink. It is critical that this name be the same on both sides, and I suggest using the default name, that of the source folder. In my example, I called my symlink &#8220;Example&#8221; so the full path is &#8220;~/Dropbox/Documents/Example&#8221;.</li>
<li>Dropbox will discover, index, and synchronize this folder on both computers. You must wait until this process is finished before proceeding to the next step!</li>
<li>Did you wait until it&#8217;s finished? Really? Did you check both computers? Click the Dropbox icon on both, just to be sure it&#8217;s not still synchronizing.</li>
<li>Quit Dropbox on Computer 2. This is very important. You can leave it running on Computer 1, but it must not be running when you perform the next step!</li>
<li>On Computer 2, open the Dropbox cache folder. Note that the symlink will show up as a real folder full of files here. Drag-and-drop this folder to the desired location. In my example, I dragged the folder &#8220;Example&#8221; from &#8220;~/Dropbox/Documents&#8221; to &#8220;~/Documents&#8221;.</li>
<li>Still on Computer 2, drag this new folder and drop it on MacDropAny.</li>
<li>Select the same folder in the Dropbox cache and give it the same name. This is absolutely critical. In my example, the symlink went back in &#8220;~/Dropbox/Documents&#8221; and was called &#8220;~/Dropbox/Documents/Example&#8221;.</li>
<li>Check to make sure both computers have identically-named symlinks in the exact same location in both Dropbox cache folders.</li>
<li>If you&#8217;re really sure, start the Dropbox application on Computer 2 and let it discover, re-index, and sync the folder. The synchronization should be very quick since no data has to be moved.</li>
</ol>
<p>That&#8217;s it! Now when you edit a file in &#8220;~/Documents/Example&#8221; on one computer, it will automatically and nearly-instantly show up on the other computer, as long as both are connected to the Internet. And if you do it offline, these changes will queue until you reconnect. You&#8217;ll also have access to these files online and through the mobile Dropbox app. Nice!</p>
<h3>Caution!</h3>
<p>This really isn&#8217;t difficult, but make sure you don&#8217;t take any shortcuts. Dropbox will automatically delete the whole folder if you forget to turn it off while creating the symlink on the second computer, and it will delete any missing files if you try to use an incomplete copy. Monitor the &#8220;Events&#8221; tab in your Dropbox web page to make sure you didn&#8217;t lose any data, and restore any accidentally-deleted files from there as well.</p>
<p>This makes it well-suited for keeping multiple &#8220;Documents&#8221; folders in sync, but isn&#8217;t always desirable. Some applications (notably iPhoto) don&#8217;t want to sync individual files, they want an entire bundle of files to be consistent. So this isn&#8217;t a perfect Mac-syncing solution. It does work for individual files usually found in the Documents folder, but be cautious. Don&#8217;t open the same file on two machines simultaneously, for one thing.</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2011/07/05/mac-dropbox-encrypted-volume/"  rel="bookmark" class="crp_title">Mac Users, Secure Your Stuff in Dropbox</a></li><li><a href="http://blog.fosketts.net/2011/03/01/google-dropbox-revolutionized-laptop-migration/"  rel="bookmark" class="crp_title">How Google and Dropbox Revolutionized My Laptop Migration</a></li><li><a href="http://blog.fosketts.net/2011/07/11/dropbox-data-format-deduplication/"  rel="bookmark" class="crp_title">How Does Dropbox Store Data?</a></li><li><a href="http://blog.fosketts.net/2011/03/05/pile-interesting-links-march-4-2011/"  rel="bookmark" class="crp_title">Back From the Pile: Interesting Links, March 4, 2011</a></li><li><a href="http://blog.fosketts.net/2009/01/19/clean-up-mac-disk-tools/"  rel="bookmark" class="crp_title">Clean Up Your Mac! Essential OS X Tidiness Tools and Techniques</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2011/03/03/multiple-macs-sync-dropbox/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2011. |
<a href="http://blog.fosketts.net/2011/03/03/multiple-macs-sync-dropbox/">Keep Multiple Macs in Sync with Dropbox</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/" title="View all posts in Everything" rel="category tag">Everything</a>, <a href="http://blog.fosketts.net/category/everything/personal/" title="View all posts in Personal" rel="category tag">Personal</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2011/03/03/multiple-macs-sync-dropbox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ramdisks: Back From the Brink of Extinction</title>
		<link>http://blog.fosketts.net/2010/01/15/ramdisk-mac-os/</link>
		<comments>http://blog.fosketts.net/2010/01/15/ramdisk-mac-os/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 16:00:06 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computer History]]></category>
		<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[Virtual Storage]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[diskutil]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hdiutil]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[ramdisk]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[SSD]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=2621</guid>
		<description><![CDATA[Using system memory for storage is something of a lost art these days. But many of today's I/O intensive tasks can still benefit from the untouchable quickness provided by a ramdisk. Happily, most operating systems are still capable of creating and using ramdisks.]]></description>
			<content:encoded><![CDATA[<p>Using system memory for storage is something of a lost art these days. Although system RAM capacity has become plentiful, cheap and quick disk storage is just as common. But many of today&#8217;s I/O intensive tasks can still benefit from the untouchable quickness provided by a ramdisk. Happily, most operating systems are still capable of creating and using ramdisks. <strong>This article discusses the creation, use, and performance of ramdisks in Mac OS X</strong>.</p>
<h3>On The Extinction Of Ramdisks</h3>
<div id="attachment_2623" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2010/01/No-Storage-Allowed.jpg" ><img class="size-medium wp-image-2623" title="No Storage Allowed" src="http://blog.fosketts.net/wp-content/uploads/2010/01/No-Storage-Allowed-300x190.jpg" alt="" width="300" height="190" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">System RAM is not typically used for storage anymore</p></div>
<p><strong>Ramdisks were a cheat to make slow system I/O tolerable</strong>, but it was never an easy decision. These days, computers are fast enough that ramdisks are rare. Every part of the computer has gotten quicker and cheaper over the last two decades, including hard disk drives, RAM, and CPUs. A typical laptop like my MacBook Pro might have 4 GB of system RAM, 320 GB of hard disk capacity, and dual 2 GHz CPUs.Those specs would have seemed inconceivable just a few years ago: I still have a Dell laptop with a 20 MHz CPU and two expensive upgrades: 1 MB of RAM and a 20 MB hard drive!</p>
<p>Far more impressive, though, are the numerous performance optimizations that have appeared. I/O channels are quicker than ever, and <strong>caches have appeared at most performance bottlenecks</strong>. It&#8217;s hard to believe, but computers used to rely much more on raw storage. Many hobbyists recall waiting for data to load from cassette tape drives, or that one key performance advance in Intel&#8217;s 80486 chip was its on-chip cache. Today&#8217;s CPUs have three levels of cache, and operating systems have gotten much better at caching data internally as well.</p>
<p>Hard disk drives have sprouted their own caches, too, making I/O seem quicker than it is. My 1997 Toshiba laptop used an un-cached 4200 rpm hard disk, but even laptop drives today  sport 16 MB or more and spin at 5400 rpm or faster. Although RAM was scarce back in the day, the performance gained from a ramdisk was worth the effort. <strong>Faster I/O and strategic caching has largely eliminated this need</strong>. Increasing operating system intelligence also plays a major part &#8211; witness <a href="http://blog.fosketts.net/2007/07/19/hybrid-drives-are-here-–-but-they’re-irrelevant-to-enterprise-storage/"  target="_blank">the failure of hybrid hard drives</a>.</p>
<h3><strong>The Modern Use Case</strong></h3>
<p>A long-standing argument in the field of computer system performance revolves around <strong>whether to manually reserve resources and place data or to let the system dynamically manage resources</strong> on its own. Computers do a decent job if allowed to, often adapting quicker and more efficiently to changing demands. But some jobs are harder to automate, and buffers and caches don&#8217;t always catch the right data.</p>
<p>Purely <strong>temporary data</strong> can be written to a ramdisk as a high performance scratch space. There is no need to store this on disk at all, and merely placing it there is likely to &#8220;pollute&#8221; the buffers, pushing out real useful data.</p>
<p>A ramdisk can also <strong>increase security</strong> somewhat by never allowing certain data to be written to disk. Ramdisks are sure to be flushed on the next reboot, but data on disk can linger and be discovered later.</p>
<p>One could even argue that <strong>today&#8217;s high-performance solid state disk is simply an evolution of the old ramdisk concept</strong>. NAND flash and RAM both offer the high random performance of the ramdisks of yore, and many analysts expect them to displace high-performance hard disk drives in the coming years. So perhaps ramdisks are not extinct after all!</p>
<div id="attachment_2624" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2010/01/Violin-SSD.jpg" ><img class="size-medium wp-image-2624" title="Violin SSD" src="http://blog.fosketts.net/wp-content/uploads/2010/01/Violin-SSD-300x225.jpg" alt="" width="300" height="225" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Ultra-performance storage systems like this Violin array use RAM for storage</p></div>
<p><strong>Using Ramdisks In Mac OS X</strong></p>
<p>Mac OS X has the ability natively to create and use ramdisks. Here&#8217;s the simple procedure:</p>
<ol>
<li><strong>Create the ramdisk with hdiutil</strong> &#8211; This terminal command will create a 1 GB ram disk and report the name used. The number following the &#8220;ram://&#8221; statement is a number of 512 KB disk blocks &#8211; multiply the desired ram size in MB by 2048 (that&#8217;s 1024 times 2) to derive other sizes.<br />
 <code>hdiutil attach -nomount ram://2097152</code></li>
<li><strong>Format the ramdisk with diskutil</strong> &#8211; The next command will format the newly-created ramdisk using the diskutil tool. We will use /dev/disk3, but you should specify whatever disk device hdiutil reported from step 1. You can also specify a different filesystem or disk name. <br />
 <code>diskutil eraseVolume "HFS+" "ramdisk" /dev/disk3</code></li>
<li><strong>Your ramdisk will now appear</strong> &#8211; OS X will now mount the newly-created ramdisk and it will appear on your desktop. Note that <strong>the contents will be destroyed if it is unmounted or if the operating system is rebooted</strong>!</li>
<li><strong>Delete your ramdisk</strong> &#8211; It&#8217;s worth saying once again: The ramdisk will disappear and all data will be deleted when you eject it or power off your computer. Be sure to back up any important data from it, then eject it with the following command: <br />
 <code>hdiutil eject /Volumes/ramdisk</code></li>
</ol>
<h3>Script It!</h3>
<p>My backup script called for the creation of a tar file, compression, encryption, and rsync copying. I decided that I could perform the first three functions on the ramdisk to increase performance and reduce the chance that an unencrypted version would remain on the disk if the script failed.</p>
<p>A simple command line combination of the above creates the necessary ramdisk:</p>
<p><code>diskutil eraseVolume "HFS+" "ramdisk" `hdiutil attach -nomount ram://2097152`</code></p>
<p>This failed once I put it in a shell script, however. The issue was the finicky nature of diskutil &#8211; hdiutil&#8217;s output included a number of whitespace characters, and diskutil failed in the script whenever it encountered this. So I used the cut command to grab just the first field of the output, like so:</p>
<p><code>diskutil eraseVolume "HFS+" "ramdisk" `hdiutil attach -nomount ram://2097152 | cut -d " " -f 1`</code></p>
<p>This solved my problem, and I was able to tar and compress to /Volumes/ramdisk in my script. I added the hdiutil eject command to the script right after the encryption step to wipe out the unencrypted data. Although this isn&#8217;t foolproof security by any means, it&#8217;s better than nothing.</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2010/11/29/write-windows-ntfs-drive-mac-os-106-snow-leopard/"  rel="bookmark" class="crp_title">How To Write To Windows NTFS Drives In Mac OS X 10.6 &#8220;Snow Leopard&#8221;</a></li><li><a href="http://blog.fosketts.net/2010/10/07/4-horsemen-cache/"  rel="bookmark" class="crp_title">The Four Horsemen of Storage System Performance: Never Enough Cache</a></li><li><a href="http://blog.fosketts.net/2007/07/19/hybrid-drives-are-here-%e2%80%93-but-they%e2%80%99re-irrelevant-to-enterprise-storage/"  rel="bookmark" class="crp_title">Hybrid Drives Are Here – But they’re Irrelevant to Enterprise Storage</a></li><li><a href="http://blog.fosketts.net/2010/05/21/seagate-momentus-xt-hybrid-ssd-disk-drive/"  rel="bookmark" class="crp_title">Smoking-Fast Laptops: Seagate Momentus XT Hybrid SSD Disk Drive Confirmed!</a></li><li><a href="http://blog.fosketts.net/2010/05/17/hybrid-ssd-hard-disk-drives/"  rel="bookmark" class="crp_title">Hybrid SSD/Hard Disk Drives: This Time For Sure!</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2010/01/15/ramdisk-mac-os/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2010. |
<a href="http://blog.fosketts.net/2010/01/15/ramdisk-mac-os/">Ramdisks: Back From the Brink of Extinction</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/computerhistory/" title="View all posts in Computer History" rel="category tag">Computer History</a>, <a href="http://blog.fosketts.net/category/everything/enterprisestorage/" title="View all posts in Enterprise storage" rel="category tag">Enterprise storage</a>, <a href="http://blog.fosketts.net/category/everything/virtualstorage/" title="View all posts in Virtual Storage" rel="category tag">Virtual Storage</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2010/01/15/ramdisk-mac-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iomega&#8217;s ix4-200d: A Killer Desktop Storage Array</title>
		<link>http://blog.fosketts.net/2009/08/27/iomega-ix4-200d/</link>
		<comments>http://blog.fosketts.net/2009/08/27/iomega-ix4-200d/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 05:01:38 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[Everything]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[Virtual Storage]]></category>
		<category><![CDATA[AFP]]></category>
		<category><![CDATA[Amazon.com]]></category>
		<category><![CDATA[Drobo]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Fry's]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Iomega]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[ix2]]></category>
		<category><![CDATA[ix4]]></category>
		<category><![CDATA[ix4-200d]]></category>
		<category><![CDATA[ix4-200r]]></category>
		<category><![CDATA[LifeLine]]></category>
		<category><![CDATA[Maxtor]]></category>
		<category><![CDATA[Micro Center]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Retrospect]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[Seagate]]></category>
		<category><![CDATA[SMB]]></category>
		<category><![CDATA[StorCenter]]></category>
		<category><![CDATA[StorCenter Pro]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[Western Digital]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=2246</guid>
		<description><![CDATA[Iomega is well into its second coming as EMC&#8217;s entry-level storage division. First, they applied EMC&#8217;s compact and full-featured LifeLine home storage software to existing gear, giving birth to the Home Media Network Hard Drive, StorCenter ix2, and StorCenter Pro ix4-100. Then they wooed the small-business community with the rack-mount StorCenter ix4-200r, adding iSCSI target [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2253" class="wp-caption aligncenter" style="width: 436px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2009/08/Iomega-ix4-200d.png" ><img class="size-full wp-image-2253 " title="Iomega ix4-200d" src="http://blog.fosketts.net/wp-content/uploads/2009/08/Iomega-ix4-200d.png" alt="The Iomega ix4-200d is a sleek 4-drive SOHO RAID system that does just about everything, from NAS to Time Machine to iSCSI for a list price right around $700?" width="426" height="313" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">The Iomega ix4-200d is a sleek 4-drive SOHO RAID system that does just about everything, from NAS to Time Machine to iSCSI for a list price right around $700</p></div>
<p><strong>Iomega is well into its second coming as </strong><a href="http://blog.fosketts.net/2009/01/07/emc-iomega-relevant/"  target="_blank"><strong>EMC&#8217;s entry-level storage division</strong></a>. First, they applied EMC&#8217;s compact and full-featured LifeLine home storage software to existing gear, giving birth to the Home Media Network Hard Drive, StorCenter ix2, and <a href="http://blog.fosketts.net/2009/02/05/emc-lifeline-storcenter-pro-ix4-100/"  target="_blank">StorCenter Pro ix4-100</a>. Then they wooed the small-business community with the rack-mount <a href="http://blog.fosketts.net/2009/04/16/iomega-storcenter-ix4-200r/"  target="_blank">StorCenter ix4-200r</a>, adding iSCSI target support and VMware compatibility.</p>
<p>Today, they are back with the new<strong> ix4-200d, probably Iomega&#8217;s best product yet</strong>. It includes every feature of the rack-mount ix4-200r, including NAS and iSCSI target mode plus great new stuff like one-touch synchronization. All of this is packaged in a Drobo-like desktop system with a starting list price of just $700, or <strong>less than half the cost of a comparable ix4-200r</strong>!<span id="more-2246"></span></p>
<h3>Desktop Storage</h3>
<p>External desktop storage products, exemplified by Western Digital&#8217;s wildly successful My Book series, have been a huge retail hit. Priced just over $100, these drives pack a terabyte or more and offer plug and play simplicity. I recently visited a small business with a WD or Seagate USB enclosure on every single desk. I&#8217;ve purchased five USB- or FireWire-connected hard drives myself over the last two years!</p>
<p>But these<strong> single-drive desktop wonders are a disaster waiting to happen</strong>:</p>
<ul>
<li><strong>They fail frequently</strong> (like my Maxtor 3200), instantly wiping out the data they contained</li>
<li><strong>They are targets for thieves</strong>, so data loss prevention (DLP) experts warn against their use</li>
<li><strong>They aren&#8217;t shareable</strong> natively, so most people resort to <a rel="nofollow" href="http://en.wikipedia.org/wiki/Sneakernet"  target="_blank">sneakernet</a> swapping rather than fight with Windows to present them as a network share</li>
<li><strong>When they&#8217;re full, they&#8217;re full</strong>, forcing the purchase of a whole new drive</li>
</ul>
<p>Many vendors sell <strong>grown-up versions that address some or all of these concerns with multiple drives, network connections, and encryption</strong>, but these have been slow to catch on. Since they contain redundant drives and extra hardware and software, they are much more expensive than their little cousins. Iomega has done battle in this arena with their original StorCenter ix2 and the ix4-100, but these have yet to catch on. Even <a href="http://blog.fosketts.net/series/drobo/"  target="_blank">Drobo</a>, with their fanatical user-friendly focus, has failed to convince many buyers.</p>
<p>Then there is the world of business storage. Way down at the bottom of the enterprise storage pyramid lies the realm of small 4- and 8-drive storage arrays. <strong>These SMB storage arrays offer a lot of capacity and reliability for the money</strong> but very little in the way of features. Iomega&#8217;s StorCenter Pro ix4-200r, in contrast, wowed the techies with a full iSCSI target stack that was certified for VMware ESX. But the price, over $1500, definitely limited sales to the home hobbyist.</p>
<h3>&#8220;Just Right&#8221; Storage</h3>
<p>Although the name is similar to the StorCenter Pro ix4-200r launched this Spring, Iomega went back to the drawing board for the ix4-200d. They built an entirely new device that could offer the impressive features of their StorCenter Pro line at a price closer to consumer storage offerings. The result<strong> boasts everything the Pro has and more at less than half the price</strong>:</p>
<ul>
<li>You want connectivity? The ix4 sports <strong>dual gigabit Ethernet ports</strong> that can be teamed up for performance or split off for redundancy.</li>
<li>You want NAS? The ix4 supports <strong>NFS, SMB, and even Apple&#8217;s AFP</strong>, plus it&#8217;s Active Directory compatible.</li>
<li>How about iSCSI? It&#8217;s <strong>a full-featured iSCSI target</strong>, <a href="http://www.windowsservercatalog.com/item.aspx?idItem=79b37f1b-29e3-225a-7dd8-2ee6fcf6e315&amp;bCatID=1282"  target="_blank">certified</a> for Microsoft Server 2003 and 2008.</li>
<li>Want to host virtual machines? The ix4 is <strong><a href="http://www.vmware.com/resources/compatibility/search.php?action=search&amp;deviceCategory=san&amp;productId=1&amp;advancedORbasic=advanced&amp;maxDisplayRows=50&amp;key=ix4-200d&amp;release%5B%5D=-1&amp;datePosted=-1&amp;partnerId%5B%5D=-1&amp;arrayTypeId%5B%5D=-1&amp;rorre=0"  target="_blank">certified</a> with VMware</strong> ESX 4 vSphere using both NFS and iSCSI, <a href="http://hcl.xensource.com/ProductDetails.aspx?ProductType=Storage&amp;ProductName=ix4-200+Series"  target="_blank">on the Xen HCL</a>, and that Microsoft logo means it will work with Hyper-V as well.</li>
<li>Need backup? The ix4 comes with <strong>EMC&#8217;s Retrospect</strong> and supports <strong>OS X Time Machine</strong> over AFP just like an Apple Time Capsule.</li>
<li>Looking for weird features? How about support for up to 5 Axis network cameras, BlueTooth Picture Transfer Protocol, and UPnP/DLNA media service!</li>
<li>Iomega also added a new feature, <strong>QuickTransfer</strong>, to synchronize files between devices.</li>
</ul>
<p>This is one seriously feature-rich storage system. In fact, <strong>this glut of features is the ix4&#8242;s Achilles heel</strong>: How do you effectively communicate the value of a device that does so much? Most of the buying public has never heard of most of these features, so the price remains hard for some to justify.</p>
<div id="attachment_2255" class="wp-caption aligncenter" style="width: 420px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2009/08/Iomega-ix4-200d-Drives.png" ><img class="size-full wp-image-2255 " title="Iomega ix4-200d Drives" src="http://blog.fosketts.net/wp-content/uploads/2009/08/Iomega-ix4-200d-Drives.png" alt="Every ix4 configuration comes loaded with four hard disk drives" width="410" height="342" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Every ix4 configuration comes loaded with four hard disk drives</p></div>
<p>Another hurdle for the ix4 is Iomega&#8217;s decision to fill it with hard drives. <strong>One cannot buy an empty ix4-200d, and both the 2 TB and 4 TB configurations come loaded with four hard disk drives</strong>. This raises the price of entry and scares off the very techies who might be interested in the device. The majority of Drobos are purchased with no drives at all, and storage geeks like me love the idea that disks can be added as-needed in the future. Although Iomega is open to users swapping out the drives in their own StorCenter device, this is not its intended use case. <strong>Iomega&#8217;s decision to sell the ix4-200d as a loaded appliance seems counter to the price sensitivity and flexibility needs of buyers</strong>.</p>
<p><strong>QuickTransfer: Data Synchronization for Everything</strong></p>
<p>One nifty new feature included with the ix4-200d is QuickTransfer, a one-touch data synchronization capability. Leveraging rsync technology, but hiding this complexity with a more-friendly wizard-based GUI, <strong>QuickTransfer allows users to set up synchronization jobs between the ix4 and a variety of targets</strong>:</p>
<ul>
<li><strong>USB drives</strong> can be plugged into one of the three USB 2.0 ports and synchronized with a subset of the content of the ix4. For example, a portable USB drive could be &#8220;recharged&#8221; with the latest set of data before one heads out of the office.</li>
<li>Two Iomega ix4&#8242;s, or other <strong>NAS systems</strong> for that matter, can be synchronized over the Ethernet/IP LAN. This would provide a robust and bandwidth-friendly remote office backup or data replication solution.</li>
<li>A <strong>PC or Mac</strong> can also be synchronized over a network share, providing a simple alternative to the bundled backup software.</li>
</ul>
<p>QuickTransfer is exclusive to the ix4-200d for now, but Iomega assured me that it would be included in future StorCenter products and added to the StorCenter Pro ix4-200r in the near future. It is unknown if or when other existing StorCenter devices will get QuickTransfer, however.</p>
<h3>Iomega&#8217;s Next Move</h3>
<p>What will Iomega do next? They must be ready to announce their <a href="http://www.vmware.com/resources/compatibility/search.php?action=search&amp;deviceCategory=san&amp;productId=1&amp;advancedORbasic=advanced&amp;maxDisplayRows=50&amp;key=ix4-200d&amp;release%5B%5D=-1&amp;datePosted=-1&amp;partnerId%5B%5D=-1&amp;arrayTypeId%5B%5D=-1&amp;rorre=0"  target="_blank">vSphere 4</a> and <a href="http://www.windowsservercatalog.com/item.aspx?idItem=79b37f1b-29e3-225a-7dd8-2ee6fcf6e315&amp;bCatID=1282"  target="_blank">Microsoft Windows Server</a> certification soon, since both company&#8217;s web sites already list the device in their compatibility lists. Iomega ought to try to take advantage of the interest among VMware users with a big <strong>VMworld</strong> splash. They will be there, but it is awfully hard to get noticed at such a large event. I am looking forward to the event to get a hands-on test.</p>
<p>The ix4 should begin showing up <strong>for sale at online stores</strong> very quickly. Amazon listed the rackmount product within days of its release, and we expect the same this time. But will Iomega offer this cheaper device in retail stores? It would be great to have it available at Staples and Best Buy, but shelf space for a storage system this expensive would be hard to get. Instead, expect it at specialty outlets like Fry&#8217;s and perhaps Micro Center.</p>
<p>How much does the StorCenter ix4-200d cost?</p>
<ul>
<li>The 2 TB model (SKU# 34546 with four 500 GB drives) lists at $699.99</li>
<li>The 4 TB model (SKU# 34549 with four 1 TB drives) lists at $899.99</li>
<li>The 8 TB model (SKU# 34563 with four 2 TB drives) lists at $1,899.99</li>
</ul>
<p>It also seems likely that <strong>the 2-bay product is up for a refresh</strong> in the near future. The ix2 can&#8217;t be said to be very attractive, so hopefully the company will do something about this with the next-generation product. It is unclear whether the inexpensive 2-bay device will get iSCSI support, but I suspect it will. Beyond this, might Iomega move further upmarket with <strong>an 8-drive unit</strong>? We shall see!</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2009/10/07/iomega-ix2-200/"  rel="bookmark" class="crp_title">Iomega ix2-200 Adds iSCSI, Sync To Dual-Drive SOHO NAS</a></li><li><a href="http://blog.fosketts.net/2009/02/05/emc-lifeline-storcenter-pro-ix4-100/"  rel="bookmark" class="crp_title">EMC LifeLine Spreads To The Iomega StorCenter Pro ix4-100</a></li><li><a href="http://blog.fosketts.net/2009/04/16/iomega-storcenter-ix4-200r/"  rel="bookmark" class="crp_title">Iomega Grows Up and Moves Out of the House</a></li><li><a href="http://blog.fosketts.net/2010/05/04/iomega-ix12-300r/"  rel="bookmark" class="crp_title">Iomega Graduates and Goes to Work with the ix12-300r</a></li><li><a href="http://blog.fosketts.net/2009/01/07/emc-iomega-relevant/"  rel="bookmark" class="crp_title">EMC Makes Iomega Relevant Again</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2009/08/27/iomega-ix4-200d/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2009. |
<a href="http://blog.fosketts.net/2009/08/27/iomega-ix4-200d/">Iomega&#8217;s ix4-200d: A Killer Desktop Storage Array</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/enterprisestorage/" title="View all posts in Enterprise storage" rel="category tag">Enterprise storage</a>, <a href="http://blog.fosketts.net/category/everything/" title="View all posts in Everything" rel="category tag">Everything</a>, <a href="http://blog.fosketts.net/category/everything/personal/" title="View all posts in Personal" rel="category tag">Personal</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>, <a href="http://blog.fosketts.net/category/everything/virtualstorage/" title="View all posts in Virtual Storage" rel="category tag">Virtual Storage</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2009/08/27/iomega-ix4-200d/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
	
		<series:name><![CDATA[Iomega]]></series:name>
	</item>
		<item>
		<title>Compression, Encryption, Deduplication, and Replication: Strange Bedfellows</title>
		<link>http://blog.fosketts.net/2009/02/05/compression-encryption-deduplication-replication/</link>
		<comments>http://blog.fosketts.net/2009/02/05/compression-encryption-deduplication-replication/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 00:11:30 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[.Mac]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[data backup]]></category>
		<category><![CDATA[deduplication]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[Macports]]></category>
		<category><![CDATA[Ocarina]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[rsyncrypto]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=1396</guid>
		<description><![CDATA[One of the great ironies of storage technology is the inverse relationship between efficiency and security: Adding performance or reducing storage requirements almost always results in reducing the confidentiality, integrity, or availability of a system. Many of the advances in capacity utilization put into production over the last few years rely on deduplication of data. [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1397" class="wp-caption alignright" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; float: right;"><a href="http://blog.fosketts.net/wp-content/uploads/2009/02/compact.jpg" ><img class="size-medium wp-image-1397" title="compact" src="http://blog.fosketts.net/wp-content/uploads/2009/02/compact-300x65.jpg" alt="Does data encryption throw efficiency out the window? Not always!" width="300" height="65" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Does data encryption throw storage efficiency out the window? Not always!</p></div>
<p>One of the great ironies of storage technology is <strong>the inverse relationship between efficiency and security</strong>: Adding performance or reducing storage requirements almost always results in reducing the confidentiality, integrity, or availability of a system.</p>
<p>Many of the advances in capacity utilization put into production over the last few years rely on deduplication of data. This key technology has moved from basic compression tools to take on challenges in the fields of replication and archiving, and is even moving into primary storage. At the same time, interconnectedness and the digital revolution has made security a greater challenge, with focus and attention turning to encryption and authentication to prevent identity theft or worse crimes. The only problem is, <strong>most encryption schemes are incompatible with compression or deduplication of data</strong>!<span id="more-1396"></span></p>
<h3 class="post-subhead">Incompatibility of Encryption and Compression</h3>
<p>Consider a basic lossless compression algorithm: We take an input file consisting of binary data and replace all repeating patterns with a unique code. If a file contained the sequence, &#8220;101110&#8243; eight hundred times in a row, we could replace the whole 4800-bit sequence with a much smaller sequence that says &#8220;repeat this eight hundred times&#8221;. In fact, this is exactly what I did (using English) in the previous sentence! This basic concept, called <a rel="nofollow" href="http://en.wikipedia.org/wiki/Run-length_encoding"  target="_blank">run-length encoding</a>, illustrates how most modern compression technology functions.</p>
<p>Replace the sequence of identical bits with a larger block of data or an entire file and you have <strong>deduplication and single-instance storage</strong>! In fact, as the compression technology gains access to the underlying data, it can become more and more efficient. The software from <a href="http://ocarinatech.com"  target="_blank">Ocarina</a>, for example, actually <em>decompresses</em> jpg and pdf files before recompressing them, resulting in astonishing capacity gains!</p>
<p>Now let&#8217;s look at compression&#8217;s secretive cousin, encryption. It&#8217;s only a small intellectual leap to use similar ideas to hide the contents of a file, rather than just squashing it. But encryption algorithms are constantly under attack, so some very smart minds have come up with some incredibly clever methods to hide data. One of the most important advances was <a rel="nofollow" href="http://en.wikipedia.org/wiki/Public_key_encryption"  target="_blank">public-key cryptography</a>, where two different keys are used: A public key used for writing, and a private key to read data. This same technique can be used to authenticate identity, since only the designated reader would (in theory) have the key required.</p>
<p>Cryptography has become exceedingly complicated lately in response to repeated attacks. Most compression and encryption algorithms are <a rel="nofollow" href="http://en.wikipedia.org/wiki/Deterministic_algorithm"  target="_blank">deterministic</a>, meaning that identical input always yields the same output. This is unacceptable for strong encryption, since a <a rel="nofollow" href="http://en.wikipedia.org/wiki/Known-plaintext_attack"  target="_blank">known plaintext attack</a> can be used with the public key to reveal the contents. Much work has focused on eliminating residues of the original data from the encrypted version, as <a rel="nofollow" href="http://en.wikipedia.org/wiki/Cipher_block_chaining#Electronic_codebook_.28ECB.29" >illustrated brilliantly</a> on Wikipedia with the classic Linux &#8220;tux&#8221; image. <strong>The goal is to make the encrypted data indistinguishable from random &#8220;noise&#8221;</strong>.</p>
<p>What happens when we mix these powerful technologies? <strong>Deduplication and encryption defeat each other</strong>! Deduplication <em>must</em> have access to repeating, deterministic data, and encryption <em>must not allow</em> this to happen. The most common solution (apart from skipping the encryption) is to place the deduplication technology first, allowing it access to the raw data before sending it on to be encrypted. But this leaves the data unprotected longer, and limits the possible locations where encryption technology can be applied. For example, an archive platform would have to encrypt data internally, since many now include deduplication as an integral component.</p>
<p>Why do we prefer compression to encryption? Simply because that&#8217;s where the money is! <strong>If we can cut down on storage space or WAN bandwidth, we see cost avoidance or even real cost savings</strong>! But if we &#8220;waste&#8221; space by encrypting data, we only save money in the case of a security breach.</p>
<h3 class="post-subhead">A Glimmer of Hope</h3>
<p>I had long thought this was an intractable problem, but a glimmer of hope recently presented itself. My hosting provider allows users to back up their files to a special repository using the rsync protocol. This is pretty handy, as you can imagine, but I was concerned about the security of this service. What happens if someone gains access to all of my data by hacking their servers?</p>
<p>At first, I only stored non-sensitive data on the backup site, but this limited its appeal. So I went looking for something that would allow me to encrypt my data before uploading it, and I discovered two interesting concepts: <strong>rsyncrypto</strong> and <strong>gzip-rsyncable</strong>.</p>
<p><a href="http://samba.anu.edu.au/rsync/"  target="_blank">rsync</a> is a solid protocol, reducing network demands by only sending the changed blocks of a file. But, as noted, compression and encryption tools change the whole file even if only a tiny bit has been altered. A few years back, the folks behind rsync (who also happen to be the minds behind the Samba CIFS server) developed a patch for gzip which causes it to compress files in chunks rather than in their entirety. This patch, called gzip-rsyncable, hasn&#8217;t been added to the main source even after a dozen years, but yields amazing results in accelerating rsync performance.</p>
<p>The same technique was then applied to RSA and AES cryptography to create <a href="http://rsyncrypto.lingnu.com/index.php/Home_Page"  target="_blank">rsyncrypto</a>. This open source encryption tool makes a simple tweak to the standard CBC encryption schema (reusing the initialization vector) to allow encrypted files to be sent more efficiently over rsync. In fact, it relies on gzip-rsyncable to work its magic. Of course, the resulting file is somewhat less secure, but it is probably more than enough to keep a casual snooper at bay.</p>
<p><strong>Both of these tools are similar to modern deduplication techniques</strong> in that they chop files up into smaller, variable-sized blocks before working their magic. And the result is awesome: I modified a single word in a large word document that I had previously encrypted and stored at the backup site and was able to transfer just a single block of the new file in an instant rather than a few minutes. My only real issue is the lack of integration of all of these tools: I had to write a bash script to encrypt  my files to a temporary directory before rsyncing them. I wish they could be integrated with the main gzip and rsync sources!</p>
<p>If you are interested in trying out these tools for yourself, and if you use a Mac, you are in luck: Macports offers both tools as simple downloads! Just <a href="http://macports.org"  target="_blank">install macports</a>, type &#8220;sudo port install gzip +rsyncable&#8221; to install gzip with the &#8211;rsyncable flag, then type &#8220;sudo port install rsyncrypto&#8221; and you&#8217;re done! I&#8217;ll post more details here if there is interest.</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2011/07/05/mac-dropbox-encrypted-volume/"  rel="bookmark" class="crp_title">Mac Users, Secure Your Stuff in Dropbox</a></li><li><a href="http://blog.fosketts.net/2011/09/22/data-reduction-condensed-version/"  rel="bookmark" class="crp_title">Data Reduction: the Condensed Version</a></li><li><a href="http://blog.fosketts.net/2008/09/16/deduplication-primary-storage/"  rel="bookmark" class="crp_title">Deduplication Coming to Primary Storage</a></li><li><a href="http://blog.fosketts.net/2009/12/01/iphone-locked-exchange-fix/"  rel="bookmark" class="crp_title">How iPhone OS 3.1 Locked Some Out Of Exchange, And How To Fix It</a></li><li><a href="http://blog.fosketts.net/2011/07/11/dropbox-data-format-deduplication/"  rel="bookmark" class="crp_title">How Does Dropbox Store Data?</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2009/02/05/compression-encryption-deduplication-replication/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2009. |
<a href="http://blog.fosketts.net/2009/02/05/compression-encryption-deduplication-replication/">Compression, Encryption, Deduplication, and Replication: Strange Bedfellows</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/enterprisestorage/" title="View all posts in Enterprise storage" rel="category tag">Enterprise storage</a>, <a href="http://blog.fosketts.net/category/everything/personal/" title="View all posts in Personal" rel="category tag">Personal</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2009/02/05/compression-encryption-deduplication-replication/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

