<?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>micromux &#187; TimeMachine</title>
	<atom:link href="http://www.micromux.com/category/timemachine/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.micromux.com</link>
	<description>Commentary on the state of my microcosm.</description>
	<lastBuildDate>Thu, 02 May 2013 02:54:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Building Your AFP TimeMachine</title>
		<link>http://www.micromux.com/2010/11/21/building-your-afp-timemachine/</link>
		<comments>http://www.micromux.com/2010/11/21/building-your-afp-timemachine/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 14:13:03 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Backups]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[TimeMachine]]></category>

		<guid isPermaLink="false">http://www.micromux.com/?p=391</guid>
		<description><![CDATA[Using the native Apple file sharing protocol (AFP) together with a service like Bonjour to broadcast the file services available you will find yourself with a much better file sharing experience. <a href="http://www.micromux.com/2010/11/21/building-your-afp-timemachine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>While it is possible to use a Windows or NFS share for your Apple TimeMachine backups, using the native Apple file sharing protocol (AFP) together with a service like Bonjour to broadcast the file services available you will find yourself with a much better file sharing experience. This tutorial walks you through how to configure your Ubuntu server to serve as an AFP host on your network and then discusses what you will need for TimeMachine to work properly.</p>
<p><span id="more-391"></span>Since my previous tutorial on how to setup NFS with TimeMachine, you might wonder what prompted me to do this. The TimeMachine backups write to a virtual filesystem that is encapsulated in something called a <em>sparsebundle</em>. Unfortunately, if you have a problem with your sparsebundle, it simply isn&#8217;t possible to correct that issue over NFS. As a result, when my system started experiencing errors I found myself in a situation where it was going to be necessary to copy 1TB of backup data to another drive that would be local to my Mac.</p>
<p style="text-align: center;"><img class="size-full wp-image-399 aligncenter" title="Hard Disk by Beer Coaster" src="http://www.micromux.com/wp-content/uploads/2010/11/4242576451_39b4be5d76.jpg" alt="Copyright Beer Coaster" width="500" height="357" /></p>
<p>This scenario simply isn&#8217;t practical, and since it would be necessary to get another hard drive and devote quite some time to copy the data from one host to another, I decided to explore AFP and configure Apple&#8217;s file sharing so that this problem could be resolved over the network directly.</p>
<p>These instructions assume your Linux server is running a recent version of Ubuntu.</p>
<ol>
<li><strong>Install Software</strong>. You&#8217;re going to need a few packages for this.<br />
<code>apt-get install netatalk avahi-daemon libnss-mdns cracklib2-dev fakeroot libssl-dev</code></li>
<li><strong>Configure Netatalk Service</strong>. This is what is going to host the file sharing services for you. Edit the /etc/default/netatalk settings to support the following configuration:
<pre>ATALKD_RUN=no
PAPD_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no</pre>
</li>
<li><strong>Setup Shares</strong>. Create the shares you want to access from your Mac. Edit your /etc/netatalk/AppleVolumes.default file and modify your share points from here. For this example, this was added to my AppleVolumes.default file to let me share the TimeMachine backup directory:<br />
<code>/export/timemachine TimeMachine allow:eric cnidscheme:cdb options:usedots options:tm veto:lost+found</code><br />
Note that the veto option is handy as it will hide directories from your hosts that may be inaccessible.</li>
<li><strong>Setup Name Broadcast.</strong> Modify your Avahi configuration to broadcast your host name information. This will make it easier to locate your Linux server from your Mac.<br />
To do this, create a file called <code style="width: 886px;">/etc/avahi/services/afpd.service</code> and place the following in it:</p>
<pre style="width: 886px;">&lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--&gt;
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;
&lt;service-group&gt;
&lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;
&lt;service&gt;
&lt;type&gt;_afpovertcp._tcp&lt;/type&gt;
&lt;port&gt;548&lt;/port&gt;
&lt;/service&gt;
&lt;service&gt;
&lt;type&gt;_device-info._tcp&lt;/type&gt;
&lt;port&gt;0&lt;/port&gt;
&lt;txt-record&gt;model=Xserve&lt;/txt-record&gt;
&lt;/service&gt;
&lt;/service-group&gt;</pre>
</li>
<li><strong>Restart Sevices</strong>. With everything configured, restart your services.<br />
<code>service netatalk restart<br />
service avahi-daemon restart</code></li>
</ol>
<p>That should do it. From your Mac, your Linux server should now be visible in the Finder. Use the <em>Connect As&#8230;</em> option to logon to your server using your credentials, and the available file shares should then appear.</p>
<p>If you plan on using this share for a TimeMachine backup, modify your TimeMachine settings and it to the new share. It&#8217;s also possible to run Disk Utility to repair your sparsebundle file on the server. In my case it took around 2 hours to complete, but it was successful and everything ran remotely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.micromux.com/2010/11/21/building-your-afp-timemachine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TimeMachine Backups to NFS</title>
		<link>http://www.micromux.com/2010/04/28/timemachine-backups-to-nfs/</link>
		<comments>http://www.micromux.com/2010/04/28/timemachine-backups-to-nfs/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 01:13:24 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Backups]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[TimeMachine]]></category>

		<guid isPermaLink="false">http://www.micromux.com/?p=348</guid>
		<description><![CDATA[Using a Mac with TimeMachine, an NFS server can be configured to provide storage for all of your backups. <a href="http://www.micromux.com/2010/04/28/timemachine-backups-to-nfs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>There are a number of affordable NAS solutions out there that can provide relatively inexpensive network addressable storage over NFS and SMB. Using a Mac with TimeMachine, an NFS server can be configured to provide storage for all of your backups. This article will walk you through setting this up, with the assumption that you already have the NFS storage device available on your network.</p>
<p><span id="more-348"></span>The first thing you need to do is enable networked storage volumes for TimeMachine. This can be done at a command prompt with the following:</p>
<p><code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</code></p>
<p><span class="calloutLeft">The first thing you need to do is enable networked storage volumes for TimeMachine</span>Once networked devices are enabled, you will need a filesystem on your NFS share that your TimeMachine archive tool can write to. Rather than backup directly to a remote filesystem, a virtual filesystem is used that has been formatted to HFS+ specifications. To create this, enter the following:</p>
<p><code>hdiutil create -size 128g -type SPARSEBUNDLE -nospotlight -volname "Time Machine Backup" -fs "Case-sensitive Journaled HFS+" -verbose ./mybackup.sparsebundle</code></p>
<p>The sparsebundle must be created locally on your Mac for the first time, it will not write correctly to a remote filesystem over NFS. After the bundle is ready, from a command prompt open the mybackup.sparsebundle directory and create a file called <em>com.apple.TimeMachine.MachineID.plist</em>. The file should include the following:</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist
  PUBLIC "-//Apple//DTD PLIST 1.0//EN"
  "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
&lt;key&gt;com.apple.backupd.HostUUID&lt;/key&gt;
&lt;string&gt;[YOUR_HOST_UUID_VALUE]&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;</pre>
<p><img class="size-medium wp-image-361 alignright" title="Time Machine Backup" src="http://www.micromux.com/wp-content/uploads/2010/04/Screen-shot-2010-04-28-at-9.05.35-PM-300x205.png" alt="Time Machine Backup in Progress" width="300" height="205" />To find your HostUUID, open <em>System Profiler</em> and on the Hardware Overview screen find the value labeled &#8220;Hardware UUID&#8221;. remember not to double click on the sparse bundle from the Finder, since this will mount the image and won&#8217;t let you create the plist file with your host UUID.</p>
<p>After getting this file into place, open the TimeMachine settings and point it to your NFS share. Before allowing the first backup to start, you may want to unmount the NFS share from your desktop. TimeMachine will take care of auto-mounting when it&#8217;s ready to run the backup, and when your computer is out of the office it will gently remind you that the backups have been trying to run without success.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.micromux.com/2010/04/28/timemachine-backups-to-nfs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.359 seconds -->
