<?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>veys.com &#187; afp</title>
	<atom:link href="http://veys.com/tag/afp/feed/" rel="self" type="application/rss+xml" />
	<link>http://veys.com</link>
	<description>if I only had a tagline.</description>
	<lastBuildDate>Tue, 27 Sep 2011 21:35:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Restoring from a Samba-based Time Machine backup (kinda)</title>
		<link>http://veys.com/2009/08/16/restoring-from-a-samba-based-time-machine-backup-kinda/</link>
		<comments>http://veys.com/2009/08/16/restoring-from-a-samba-based-time-machine-backup-kinda/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 23:36:31 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[howtos]]></category>
		<category><![CDATA[afp]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smbfs]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[time machine]]></category>

		<guid isPermaLink="false">http://veys.com/?p=354</guid>
		<description><![CDATA[Panicking about not being about to find or mount your Samba share you&#8217;ve been blissfully backing up to over your network?  Trying to restore to a new hard drive using the Leopard boot DVD? I recently had the pleasure of a hard disk crash on my MacBook, and only a month earlier had started backing [...]]]></description>
			<content:encoded><![CDATA[<p>Panicking about not being about to find or mount your Samba share you&#8217;ve been blissfully backing up to over your network?  Trying to restore to a new hard drive using the Leopard boot DVD?</p>
<p>I recently had the pleasure of a hard disk crash on my MacBook, and only a month earlier had started backing up to a Samba-share via Time Machine.  I had the &#8220;how to restore&#8221; question nagging in the back of my head when I set it all up but I figured someone had it figured out, otherwise why would <a href="http://www.oak-tree.us/blog/index.php/2009/06/09/backup-part4">so</a> <a href="http://hupio.wordpress.com/2008/04/27/osx-timemachine-and-sambawindows-share/">many</a> <a href="http://freakymousemats.com/blog/posts/2007/11/01/time-machine-over-smb/">articles</a> exist to show you how to set it up?</p>
<p>I&#8217;ve been trying to find out how people using the <tt>TMShowUnsupportedNetworkVolumes</tt> hack to use Time Machine on smbfs shares have been restoring and it would seem that the answer is &#8220;they aren&#8217;t&#8221;.  That, or they&#8217;re simply using it as an &#8220;oops&#8221; fixer, restoring a file here and there.</p>
<p>When booting from the Leopard DVD, firing up the terminal and attempting to mount the share, the following delightful message shows up:</p>
<p><code> mount_smbfs --&gt; mount_smbfs: failed to load the smb library: Unknown error: 1102<br />
</code></p>
<p>Searching for that was even more disappointing.  Other people running into the issue, no solutions.  It seems smb support is just not available on the boot DVD.</p>
<p>I ran into a possible solution, copy the Time Machine sparse bundle onto a removable hard disk, and hook it up to the laptop.  Unfortunately all my external storage is formatted ReisferFS or ext3, neither are supported filesystems, and I didn&#8217;t feel like changing one just to fix this.</p>
<p>So in comes the hack.  Luckily the Samba share is on an Ubuntu 9.04 (Jaunty) server, so adding support for something Apple <em>does </em>support on the boot DVD is tragically easy.  This is a fairly specific solution, but variations on it will work for many different servers.</p>
<h3>Enter AFP</h3>
<p>Looking through the other available mount applications, we also have <tt>mount_afp</tt> available.  This mounts <a href="http://en.wikipedia.org/wiki/Apple_Filing_Protocol">Apple Filing Protocol</a>-based shares, and it works too, bonus!</p>
<p>So it boils down to enabling AFP on the server and sharing the same volume via AFP.  AFP on Linux (BSD, etc) is supplied by <a href="http://netatalk.sourceforge.net/">netatalk</a>, and here&#8217;s a step-by-step of how I wrapped it all up.</p>
<p>On the server:</p>
<ul>
<li><tt>sudo aptitude install netatalk</tt></li>
<li>Edit <tt>/etc/netatalk/AppleVolumes.default</tt></li>
<li>Add entry for the volume, such as:
<ul>
<li><tt>/mnt/time_machine "tmachine"</tt></li>
</ul>
</li>
<li>Save the file</li>
<li><tt>sudo /etc/init.d/netatalk restart</tt></li>
</ul>
<p>On the Mac:</p>
<ul>
<li>Boot from the Leopard install DVD</li>
<li>Enable Airport (if on WiFi), join your network</li>
<li>From the menu bar, select <strong>Utilities -&gt; Terminal</strong></li>
<li>Navigate to <tt>/Volumes</tt></li>
<li>Create a new mount point for the Time Machine volume
<ul>
<li><tt>mkdir /Volumes/tmachine</tt></li>
</ul>
</li>
<li>Mount the AFP share on the new point (<a href="http://www.macosxhints.com/article.php?story=2001120201020569">details</a>)
<ul>
<li><tt>mount -t afp afp://username:password@server.hostname/tmachine /Volumes/tmachine</tt></li>
</ul>
</li>
<li>Quit Terminal</li>
<li>Back at the main menu bar, select <strong>Utilities -&gt; Restore System From Backup&#8230;</strong></li>
<li>You should see your Time Machine backup volume listed</li>
<li>Select it, and select the date from which you wish to restore</li>
<li>Wait a <em>considerable</em> amount of time for it to determine the space needed</li>
<li>Enjoy the hours and hours of restore time!</li>
</ul>
<h3>Aftermath</h3>
<p>The basic AFP installation added to the server is likely pretty insecure, I purged it as soon as the restore completed.  <a href="http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/">Read this for a more formal treatment on setting up an AFP server on Linux</a>.  It is likely that the real solution is to stop suggesting people use Samba as a file server for Time Machine backups, instead switching to AFP altogether.</p>
<h3>Update</h3>
<p>Just recently came back to this for a Snow Leopard restore, the directions are unchanged.  The nice bonus is there have apparently been some optimizations during the restore, and an initial space calculation was practically instant.  Nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://veys.com/2009/08/16/restoring-from-a-samba-based-time-machine-backup-kinda/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  veys.com/tag/afp/feed/ ) in 0.37181 seconds, on May 19th, 2012 at 1:35 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 19th, 2012 at 1:37 pm UTC -->
