<?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>Benjamin Sherman &#187; time machine</title>
	<atom:link href="http://holyarmy.org/tag/time-machine/feed/" rel="self" type="application/rss+xml" />
	<link>http://holyarmy.org</link>
	<description>I have to have a tagline?</description>
	<lastBuildDate>Wed, 02 Jun 2010 06:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Bonjour Avahi Addendum</title>
		<link>http://holyarmy.org/2008/11/bonjour-avahi-addendum/</link>
		<comments>http://holyarmy.org/2008/11/bonjour-avahi-addendum/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 16:23:53 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[bonjour]]></category>
		<category><![CDATA[time machine]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://holyarmy.org/?p=325</guid>
		<description><![CDATA[A while back I wrote about advertising Linux services via Avahi/Bonjour. Since then I&#8217;ve made a few changes to my setup. First, I nixed netatalk for direct AFP support. My primary reason for using it was to gain a more Mac-like network filesystem which would make Time Machine happier. Well, Time Machine uses a sparse [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote about <a href="http://holyarmy.org/2008/01/advertising-linux-services-via-avahibonjour">advertising Linux services via Avahi/Bonjour</a>. Since then I&#8217;ve made a few changes to my setup.</p>
<p>First, I nixed netatalk for direct AFP support. My primary reason for using it was to gain a more Mac-like network filesystem which would make Time Machine happier. Well, Time Machine uses a sparse bundle disk image on it&#8217;s target; after learning about that, using AFP seemed a bit unnecessary. Also, Samba CIFS/SMB seemed to perform better. I don&#8217;t have solid benchmarks for this, but simple file copies seemed to be consistenly faster with Samba. One of the biggest annoyances about netatalk was all the extra hidden files and folders it created. I run a hybrid network, I have more Mac machines, but also Windows, plus I browse file systems on the command line quite often; and those excess files pushed me over the edge.</p>
<p>Second, I nixed Time Machine. Just when I thought everything was working perfectly, it completely blew up and could no longer access its data store. Not good for a backup solution. I plan to write about my new home backup solution sometime, but it&#8217;s basically rsync with a few key points.</p>
<p><span id="more-325"></span></p>
<p>Lastly, I streamlined my Linux avahi config using some pointers <a href="http://www.simonwheatley.co.uk/2008/04/06/avahi-finder-icons/">here</a>, suggested to me by George the commenter on my above linked post.</p>
<p>Previously i had a service config file for each service, but this resulted in my server having multiple entries in the OS X Finder, one host for Samba, one host for AFP (when I had it), and one host for RFB. So, I merged all of those files into one.</p>
<p><strong>multi.service</strong><br />
<code><br />
&lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--&gt;<br />
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;<br />
&lt;service-group&gt;<br />
&lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_smb._tcp&lt;/type&gt;<br />
&lt;port&gt;139&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_rfb._tcp&lt;/type&gt;<br />
&lt;port&gt;5901&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_device-info._tcp&lt;/type&gt;<br />
&lt;port&gt;0&lt;/port&gt;<br />
&lt;txt-record&gt;model=RackMac&lt;/txt-record&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_http._tcp&lt;/type&gt;<br />
&lt;port&gt;80&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_ssh._tcp&lt;/type&gt;<br />
&lt;port&gt;22&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_sftp-ssh._tcp&lt;/type&gt;<br />
&lt;port&gt;22&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;/service-group&gt;<br />
</code><br />
Now everything that can show up in the OS X finder, shows up on one host entry. Plus thanks to the tip I linked to above, the &#8220;_device-info._tcp&#8221; section sets an icon for the server in OS X Finder.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/2008/11/bonjour-avahi-addendum/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Time Machine backup to Linux via Netatalk</title>
		<link>http://holyarmy.org/2008/01/time-machine-backup-to-linux-via-netatalk/</link>
		<comments>http://holyarmy.org/2008/01/time-machine-backup-to-linux-via-netatalk/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 07:26:49 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[time machine]]></category>

		<guid isPermaLink="false">http://sherman.bz/2008/01/24/time-machine-backup-to-linux-via-netatalk/</guid>
		<description><![CDATA[So, when I got the upgrade from Tiger to Leopard on my MacBook Pro, I was looking for a good backup solution. I&#8217;ve used rsync in the past, but when I saw that Apple had a new Time Machine backup tool, I was curious to give it a shot. The catch is you basically needed [...]]]></description>
			<content:encoded><![CDATA[<div>So, when I got the upgrade from Tiger to Leopard on my MacBook Pro, I was looking for a good backup solution. I&#8217;ve used <a href="http://samba.anu.edu.au/rsync/" target="_blank">rsync</a> in the past, but when I saw that Apple had a new <a href="http://www.apple.com/macosx/features/timemachine.html" target="_blank">Time Machine</a> backup tool, I was curious to give it a shot. The catch is you basically needed an external USB or Firewire drive, until they recently came out with the <a href="http://www.apple.com/timecapsule/" target="_blank">Time Capsule</a>. Anyway, tonight I got the itch to really see if I could make Time Machine work without buying extra hardware. I mean, seriously, I&#8217;ve got a good hunk of mirrored disk sitting on my home server; that seems like a good place to do backups.</div>
<div>Some googling found me this <a href="http://www.fey.ca/blarchives/2007/11/18/time_machine_and_netatalk.html" target="_blank">link</a> to a blogger who&#8217;d done it!</div>
<div></div>
<div>I&#8217;ll make my own version of this post, since I had a few differences from the original I where I found the info.</div>
<p><span id="more-288"></span></p>
<div>First, netatalk is the Apple File Protocol server for Linux. My home server is running Ubuntu Linux 7.10 Gutsy Gibbon release. The default Debian/Ubuntu netatalk package doesn&#8217;t cut it, though, as it isn&#8217;t compiled against ssl, and Leopard has more stringent security requirements than its predecessors, so we have to custom compile a more secure version of netatalk. (Yes, you could reduce the security requirements, but I&#8217;d rather not.)</div>
<div><br class="webkit-block-placeholder" /></div>
<div>
<ol>
<li>Follow the instructions in this <a href="http://ubuntuforums.org/showpost.php?p=918060&amp;postcount=16" target="_blank">ubuntu forum post</a> to compile and install netatalk. After, run &#8220;echo &#8220;netatalk hold&#8221; | sudo dpkg &#8211;set-selections&#8221; to ensure that your package is not auto-upgraded (thus breaking your install).</li>
<li>Edit the netatalk configuration to include your backup storage location. The file /etc/netatalk/AppleVolumes.default is where the file server paths are configured. The last line of the default config grants access to home directories and looks like: (~/<span style="white-space: pre" class="Apple-tab-span">			</span>&#8220;Home Directory&#8221;). You&#8217;ll need to add a line specifying where you are storing your backups; mine looks like: (/backup/time_machine/<span style="white-space: pre" class="Apple-tab-span">	</span>&#8220;Time Machine&#8221;). <span class="Apple-style-span" style="font-style: italic">Note: I removed the &#8220;Home Directory&#8221; line, as in general I&#8217;m happier using CIFS(Samba) to access my network shares.</span></li>
<li>Modify <a href="http://www.disgruntled-dutch.com/2007/general/how-to-get-your-linux-based-afp-server-to-show-up-correctly-in-leopards-new-finder/" target="_blank">avahi/zeroconf to advertise AFP</a> so that Mac Bonjour will see the fileserver. I followed these directions exactly.</li>
<li><span class="Apple-style-span" style="text-decoration: line-through">Each Mac user needing access to the server has to have a corresponding user on the server, and each user needs a .passwd file in their home directory. Follow </span><a href="http://www.blackmac.de/archives/58-Make-Netatalk-talk-to-Leopard-Mac-OS-X-10.5.html" target="_blank"><span class="Apple-style-span" style="text-decoration: line-through">these instructions for Ubuntu</span></a><span class="Apple-style-span" style="text-decoration: line-through"> only as it explains the creation of the .passwd file.</span> <span class="Apple-style-span" style="font-style: italic">Note: This is not needed, as far as I can tell, so I wouldn&#8217;t do it. I don&#8217;t like the idea of having my password in plaintext on my server.</span></li>
<li>Create a file named &#8220;.com.apple.timemachine.supported&#8221; at the root of the intended shared backup volume. (Discussed <a href="http://episteme.arstechnica.com/eve/forums/a/tpc/f/8300945231/m/420002218831" target="_blank">here in more detail</a>.)</li>
<li>On your Mac, open a Terminal window and type: &#8220;defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1&#8243;</li>
</ol>
<div>I rebooted, but it might not be necessary. After a bit of time, my server showed up under the &#8220;Shared&#8221; section in Finder&#8217;s left column navigation window. I did have to type in my username and password to get it to work, which can be saved in the keychain.</div>
<div></div>
<div><span class="Apple-style-span" style="text-decoration: line-through">I added my other common shared folders (which I&#8217;d previously been accessing via Samba/CIFS).</span> Now I&#8217;m backing up with Time Machine <span class="Apple-style-span" style="text-decoration: line-through">AND using my shared files</span> via AFP. My Mac is happy, and I am too.</div>
<div></div>
<div></div>
<div>(see next post for explanation of strikeouts, but note, I don&#8217;t recommend you do the struck out actions.)</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/2008/01/time-machine-backup-to-linux-via-netatalk/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

