<?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>From Bits to Bites &#38; Windshields to Worship &#187; BackupPC</title>
	<atom:link href="http://www.mattmckimmy.com/blog/tag/backuppc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattmckimmy.com/blog</link>
	<description>Computers, Cooking, Cars, Christianity, and More ...</description>
	<lastBuildDate>Mon, 21 Jun 2010 12:30:09 +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>Specifying a shared mount point in Ubuntu Linux</title>
		<link>http://www.mattmckimmy.com/blog/2009/09/23/specifying-a-shared-mount-point-in-ubuntu-linux/</link>
		<comments>http://www.mattmckimmy.com/blog/2009/09/23/specifying-a-shared-mount-point-in-ubuntu-linux/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 12:41:51 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[BackupPC]]></category>
		<category><![CDATA[drives]]></category>
		<category><![CDATA[eSATA]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LUKS]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[USB 2.0]]></category>
		<category><![CDATA[volumes]]></category>

		<guid isPermaLink="false">http://www.mattmckimmy.com/blog/?p=150</guid>
		<description><![CDATA[This post is part of my Upgraded Linux Backup series.
One of the challenges I faced in configuring my new backup system on my Ubuntu Linux-based server was setting up my two external drives to mount at the same place in the filesystem.
Why? Because the program I use to manage my backups, BackupPC, expects the storage [...]]]></description>
			<content:encoded><![CDATA[<p><em>This post is part of my <a onclick="javascript:pageTracker._trackPageview('/outgoing/www.mattmckimmy.com/blog/2009/08/04/upgraded-linux-backu/');" href="/blog/2009/08/04/upgraded-linux-backu/">Upgraded Linux Backup</a> series.</em></p>
<p>One of the challenges I faced in configuring my new backup system on my Ubuntu Linux-based server was setting up my two external drives to mount at the same place in the filesystem.</p>
<p>Why? Because the program I use to manage my backups, <a href="http://backuppc.sourceforge.net/">BackupPC</a>, expects the storage &#8220;pool&#8221; to always be in the same place. My options were to write a script to change the BackupPC configuration each time a different drive was plugged in, or make the pool mount in the same location regardless of which drive I&#8217;m using. Because I was working with LUKS-encrypted volumes I faced additional complexities which made it  difficult to use other methods (like volume labeling) because of how Gnome handles and mounts such encrypted volumes.</p>
<p>While it took a while to make it work, once I figured it out it did exactly what I needed. Now, I&#8217;m sharing my results with you to save you the trouble of doing all the research yourself!</p>
<p><span id="more-150"></span> I found the easiest solution both for this problem and my next one (making eSATA drives auto mount) was to use HAL configuration files. HAL stands for &#8220;Hardware Abstraction Layer&#8221; and is one of the ways Linux interfaces with various hardware elements, including hard drives. Using XML it is easy to create custom policies to define how HAL handles particular devices.</p>
<p><em>(*Note: I have read that Ubuntu will soon be moving away from using HAL, possibly as soon as 9.10, Karmic Koala. I&#8217;ve tested this on Ubuntu 8.04, 8.10, and 9.04, but it should work with any distro that (still) uses HAL.)</em></p>
<p><em>(** Note 2: Having recently begun the process of rebuilding my server on Ubuntu 9.10/Karmic, I can verify that this method DOES NOT WORK. I am currently in the process of figuring out a solution, likely using udev and scripting, and will post my results as a post here &#8230;)</em></p>
<p>These configuration files are located in <em>/etc/hal/fdi/policy. </em>My installation included one existing file &#8211; <em>preferences.fdi</em> &#8211; which defines whether non-removable drives are auto-mounted. (We&#8217;ll get to eSATA auto mounting soon enough &#8230;)</p>
<p>Some quick notes on how<em> .fdi</em> files work: first devices are matched with pre-determined keys, defined through XML. Then, actions are taken by changing (or &#8220;merging&#8221;) other keys. A very basic <em>.fdi</em> file might consist of the following:</p>
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;!-- -*- SGML -*- --&gt;
&lt;deviceinfo version="0.2"&gt;

 &lt;device&gt;
   &lt;match key="some.key" string="some_string"&gt;
     &lt;merge key="another.key" type="bool"&gt;true&lt;/merge&gt;
   &lt;/match&gt;
 &lt;/device&gt;</pre>
<p>So what&#8217;s the easiest way to find these keys to match and merge? In my experience, Gnome Device Manager (aka gnome-device-manager).</p>
<p>To see if you have Device Manager installed, check under &#8220;Applications -&gt; System Tools&#8221; or try to launch <em>gnome-device-manager</em> from the terminal. If it doesn&#8217;t work, install it using Synaptic or run:</p>
<pre>sudo apt-get install gnome-device-manager</pre>
<p>With your drive plugged in and turned on, open up the device manager and begin to look for your drive. You may have to expand some of the trees for &#8220;SCSI Host Adapters&#8221; and &#8220;SCSI Devices&#8221;, or possibly USB-related trees,  before you see the drive entries, usually titled &#8220;Mass Storage Drive&#8221; or something about removable storage.  There may be several of these entries. You will need to look at attributes like the model numbers and capacities to determine which drive it is you&#8217;re wanting.</p>
<p>Once you&#8217;ve identified the drive you want the information for, type <em>ctrl+p</em> or click on &#8220;View -&gt; Device Properties&#8221; which should make an additional &#8220;Properties&#8221; tab appear beside the previous &#8220;Summary&#8221; tab. Now you will be able to see the various keys, types, and values you can use when creating <em>.fdi</em> files. For our purposes here we will need to look at the properties not for the drive itself, but for the volume we want to create a mount point for.</p>
<div id="attachment_160" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.mattmckimmy.com/blog/wp-content/uploads/2009/09/dev_man.jpg"><img class="size-full wp-image-160" title="Device Manager" src="http://www.mattmckimmy.com/blog/wp-content/uploads/2009/09/dev_man.jpg" alt="Note: this is with drive attached via eSATA" width="450" height="344" /></a><p class="wp-caption-text">Note: this is with drive attached via eSATA</p></div>
<p>Our first order of business is to find a key that will provide a definitive match for each drive / volume. In my situation I was using two identical external enclosures with two identical drives. I <em>could</em> have simply created one rule that would specify the mount point based on any drive that matched some shared property, such as the model number (<em>storage.model</em>) but I wanted to make sure that these two volumes and <em>only</em> these volumes would share this mount point. In addition, I wanted to be able to tell at a glance which one was mounted, so I needed HAL to distinguish between them somehow.</p>
<p>Every volume has a distinctive UUID &#8211; kind of like a fingerprint that identifies it to the rest of the system. In the device manager, under the properties tab for the volume you&#8217;re working on, look for the <em>volume.UUID</em> key. Once you&#8217;ve found it you can begin to write your HAL policy file.</p>
<p>Create a new, blank text file in <em>/etc/hal/fdi/policy</em>. (You will probably need to do all this as root / sudo) Name it something like <em>30-sharedmounts.fdi</em>. (The &#8220;30&#8243; in the file name makes sure this policy is evaluated prior to the general preferences file.) Once you have created your file, open it in your favorite text editor and start with the following:</p>
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;!-- -*- SGML -*- --&gt;
&lt;deviceinfo version="0.2"&gt;</pre>
<p>Now we need to specify the device and they keys we want to match and merge:</p>
<pre>&lt;device&gt;
 &lt;match key="block.is_volume" bool="true"&gt;
 &lt;match key="volume.uuid" string="7feeefbf-416b-4383-9bb3-7fd51cb3e702"&gt;
   &lt;merge key="volume.policy.desired_mount_point" type="string"&gt;ext_backup&lt;/merge&gt;
   &lt;merge key="volume.label" type="string"&gt;Ext Backup 1&lt;/merge&gt;
 &lt;/match&gt;
 &lt;/match&gt;
&lt;/device&gt;</pre>
<p>Here&#8217;s a quick explanation of what you see above, and what each does:</p>
<ul>
<li><em>&lt;match key=&#8221;block.is_volume&#8221; bool=&#8221;true&#8221;&gt;</em> &#8211; A little bit of insurance, to make sure we&#8217;re working with a volume and not a drive.</li>
<li><em>&lt;match key=&#8221;volume.uuid&#8221; string=&#8221;7feeefbf-416b-4383-9bb3-7fd51cb3e702&#8243;&gt;</em> &#8211; As described above, identifies the particular volume you want to specify the mount point for.</li>
<li><em>&lt;merge key=&#8221;volume.policy.desired_mount_point&#8221; type=&#8221;string&#8221;&gt;ext_backup</em> &#8211; This is the new mount point, which will appear beneath <em>/media/</em> , so this example would mount as <em>/media/ext_backup</em> .</li>
<li><em>&lt;merge key=&#8221;volume.label&#8221; type=&#8221;string&#8221;&gt;Ext Backup 1</em> &#8211; A little extra nicety. This is how we can identify between different volumes, even when they&#8217;re mounted at the same point in the filesystem.</li>
</ul>
<p>Now that you&#8217;ve got the mount point specified for your first volume, you&#8217;ll want to do the same for your second (and any other subsequent) volumes. For each volume, just find the UUID and create a new <em>&lt;device&gt;</em> section in the <em>.fdi</em> file. Be sure to specify the same mount point and unique volume labels (if you so desire.) Once you&#8217;re done, save your file and restart HAL (or just reboot.)</p>
<pre>sudo /etc/init.d/hal restart</pre>
<p>Now, whenever you plug in your drives and Gnome auto-mounts your volumes, they will mount in the same place every time.</p>
<p>What&#8217;s that, you say? You&#8217;re using eSATA drives and they don&#8217;t auto-mount? My next blog post will take care of that for you, and it shouldn&#8217;t take more than about 5 minutes of your time. As an added bonus, this method will mount the volumes in the same place regardless of whether they&#8217;re connected by USB or eSATA.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattmckimmy.com/blog/2009/09/23/specifying-a-shared-mount-point-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Backup Hardware: Drives, Enclosures, and Controller Card</title>
		<link>http://www.mattmckimmy.com/blog/2009/08/10/new-backup-hardware/</link>
		<comments>http://www.mattmckimmy.com/blog/2009/08/10/new-backup-hardware/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 19:06:06 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[BackupPC]]></category>
		<category><![CDATA[eSATA]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.mattmckimmy.com/blog/?p=115</guid>
		<description><![CDATA[Part of the "Upgraded Linux Backup" series. Here's a brief overview of my old backup hardware, my goals for the new system, and the hardware I purchased to reach those goals. I'm using BackupPC software on an Ubuntu server, and this new hardware is doing great thus far!]]></description>
			<content:encoded><![CDATA[<p><em>This post is part of my <a href="http://www.mattmckimmy.com/blog/2009/08/04/upgraded-linux-backu/">Upgraded Linux Backup</a> series.</em></p>
<p>Before I get to what my new backup hardware consists of, it might be helpful to know a bit about my existing (old) setup. My home network consists of a workstation, a laptop, a <a title="Becky's Netbook" href="http://www.beckymckimmy.com/blog/2009/07/31/techonology-today-i-love-my-netbook/" target="_blank">netbook</a>, a seldom-used garage PC, and a multipurpose server. Among it&#8217;s many duties, the server is a centralized backup server, allowing the various computers to back up files each night. It runs on an old AMD Athlon motherboard with 512MB RAM, using a 30 GB drive for the OS and programs and a pair of 200 GB drives for storage and backup.</p>
<p>Prior to this upgrade, the backup drive was regularly at 95% capacity. Even with the intelligent pooling technology used by the <a title="BackupPC site" href="http://backuppc.sourceforge.net/" target="_blank">BackupPC software</a> it had become necessary to limit the number of nightly backups I was keeping in order to make space for the unique data from the various PCs.  So I decided it was time to upgrade my storage situation.<br />
<span id="more-115"></span></p>
<p>I had been debating for a while how to best increase my storage space while also ensuring the integrity and protection of my data. Having recently witnessed my <a href="http://www.mattmckimmy.com/blog/2008/12/02/from-the-ashes/">parents&#8217; misfortune</a> and recognizing that if a similar tragedy would have happened to me that many priceless digital memories and large amounts of work-related data would have been lost, I knew it was time for a system that incorporated some kind of off-site backup.</p>
<p>One option I contemplated was an online backup service, where your data is stored in the &#8220;cloud&#8221; and available whenever and wherever you need to access it. The particular provider I considered was <a href="https://spideroak.com/" target="_blank">SpiderOak</a>. I had one of their free 2 GB accounts already and I was very impressed with their security and privacy policies as well as their interoperability with Linux. However, the problem with such online backup options is their monthly fees. For the <a title="SpiderOak Pricing" href="https://spideroak.com/pricing" target="_blank">price of 100 GB per year</a> at SpiderOak I could buy a hard drive ten times that size!</p>
<p>So that&#8217;s what I did &#8211; I bought two 1TB hard drives. This will allow for one hard drive to be in service and the other stored at a secure, off-site location in case of disaster. I&#8217;ll have tons of storage space and no monthly fees. A win-win situation.</p>
<p>Of course, juggling two different drives means additional complications with set-up and management, but those are later blog posts.</p>
<p>My original plan was to buy two bare drives and two USB enclosures. My server does not support serial ATA (SATA) drives, so USB seemed easiest for both compatibility and swap-ability. I&#8217;ll elaborate later, but to make a long story short USB simply was not adequate for my particular needs, so I ended up purchasing a PCI SATA controller as well. Thankfully the enclosures supported both USB and eSATA, so everything else was simply a matter of configuration (also another post.)</p>
<p>So finally, here&#8217;s the hardware I ended up using to make my backup plans a reality. All links are to Newegg, my personal favorite purveyor of computer parts. (The prices listed were as of July 2009, and I&#8217;m sure will probably become laughable as time passes.)</p>
<ul>
<li>2 <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822136317" target="_blank">Western Digital Caviar Green WD10EADS  1TB SATA drives</a> &#8211; $79.99 ea.</li>
<li>2 <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817392030" target="_blank">Vantec NST-300SU external USB / eSATA enclosures</a> &#8211; $27.98 ea.</li>
<li><a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16816132007" target="_blank">Rosewill RC-210 PCI internal &amp; external SATA controller</a> &#8211; $19.99</li>
</ul>
<p>Total cost &#8211; $235.93 (All the items qualified for free shipping at the time I ordered them.) Less than the cost of 100GB for two years through an online backup provider.</p>
<p>Thus far I&#8217;ve had no hardware-related problems, and everything has been superbly compatible with Linux (Ubuntu 8.04 LTS / Hardy Heron.) The drives are extraordinarily quiet. Since the server still has 3 internal hard drives and several fans, the new external drives are basically inaudible.</p>
<p>The only nitpick I&#8217;ve got is with the Vantec enclosures. There is a bright blue power / activity LED on the front the enclosure, and when you install the drive into the internal tray you have to plug the LED in as you put the enclosure back together. Two small, recessed screws hold the drive tray in place. I found (with both my enclosures) that if I tightened the screws all the way down, completely closing the gap between the tray and the rest of the enclosure, the lights would not work. If I backed the screws out just a few threads everything worked fine. I don&#8217;t think the gap is large enough to pose a concern, so it&#8217;s basically just a small aesthetic annoyance. Not a deal-breaker, but something worth noting.</p>
<p>That&#8217;s it for the hardware specs! Next up, formatting the removable drives and setting them up with LUKS encryption.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattmckimmy.com/blog/2009/08/10/new-backup-hardware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgraded Linux Backup</title>
		<link>http://www.mattmckimmy.com/blog/2009/08/04/upgraded-linux-backup/</link>
		<comments>http://www.mattmckimmy.com/blog/2009/08/04/upgraded-linux-backup/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 03:12:33 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[BackupPC]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[eSATA]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LUKS]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.mattmckimmy.com/blog/?p=110</guid>
		<description><![CDATA[After taking a couple weeks to upgrade my home network backup system I feel I've learned some lessons that some other folks might benefit from. So many lessons, in fact, that one blog post seems inadequate to contain them all. With that in mind, I'm going to be authoring a series on all the steps along the way.]]></description>
			<content:encoded><![CDATA[<p>After taking a couple weeks to upgrade my home network backup system I feel I&#8217;ve learned some lessons that some other folks might benefit from. So many lessons, in fact, that one blog post seems inadequate to contain them all. With that in mind, I&#8217;m going to be authoring a series on all the steps along the way.</p>
<p>Over the next couple days (weeks?) you can expect more on the following topics:</p>
<ul>
<li><a href="http://www.mattmckimmy.com/blog/2009/08/10/new-backup-hardware/">New backup hardware: drives, enclosures, and controller card</a></li>
<li><a href="/2009/09/21/setting-up-luks-encryption-on-usb-drives/">Setting things up: LUKS encryption on external drives</a></li>
<li><a href="http://www.mattmckimmy.com/blog/2009/09/23/specifying-a-shared-mount-point-in-ubuntu-linux/">Specifying a shared mount point in Ubuntu Linux</a></li>
<li>Switching from USB to eSATA, making eSATA automount</li>
<li>Making external encrypted drives work with BackupPC</li>
</ul>
<p>As you can tell from this list I faced a lot of hoops to jump through in order to get this up and running. I&#8217;ll add links to the individual posts as I write them. Feel free to ask questions if you&#8217;ve got any!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattmckimmy.com/blog/2009/08/04/upgraded-linux-backup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
