<?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>Joe's Amazing Technicolor Weblog &#187; os x</title>
	<atom:link href="http://slagwerks.com/blog/index.php/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://slagwerks.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 22:31:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Snow Leopard still a mixed bag</title>
		<link>http://slagwerks.com/blog/index.php/2010/02/02/snow-leopard-still-a-mixed-bag/</link>
		<comments>http://slagwerks.com/blog/index.php/2010/02/02/snow-leopard-still-a-mixed-bag/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 16:56:54 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/?p=350</guid>
		<description><![CDATA[I&#8217;ve been trying out Mac OS 10.6 a.k.a. Snow Leopard for a few weeks now. For the most part it looks and acts&#8230; just like Leopard! Still, I have run into the following&#160;annoyances: Doesn&#8217;t really want to do more than one thing if you only have 1 GB RAM, very noticeably worse than Tiger in this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying out Mac <span class="caps">OS</span> 10.6 a.k.a. Snow Leopard for a few weeks now. For the most part it looks and acts&#8230; just like Leopard! Still, I have run into the following&nbsp;annoyances:</p>
<ul>
<li>Doesn&#8217;t really want to do more than one thing if you only have 1 <span class="caps">GB</span> <span class="caps">RAM</span>, very noticeably worse than Tiger in this regard (never ran Leopard much on only 1 <span class="caps">GB</span>).  I guess there are more <code>int</code>s running in the OS <span class="amp">&amp;</span> in basic apps than I would have thought, if it is the 64bitness to&nbsp;blame.</li>
<li>Doesn&#8217;t work with our older b/g Airport Extreme. Says it&#8217;s on the wireless network, but doesn&#8217;t configure <span class="caps">TCP</span>/<span class="caps">IP</span> settings&thinsp;&#8212;&thinsp;this is after much experimenting with various Airport settings. Search for &#8216;snow leopard wireless&#8217; for a variety of related&nbsp;complaints.</li>
<li>Doesn&#8217;t work with the Citrix XenApp web plugin. To be fair, this seems to be due to Citrix expecting Java 1.5 to be installed, which is kind of lame. Workarounds are reported on the internets, but then you&#8217;re managing your own Java installation, which seems to be one of the most vulnerability-plagued pieces of <span class="caps">OS</span>&nbsp;X.</li>
</ul>
<p>My conclusion, as of 10.6.2: no reason to upgrade from Leopard, unless you&#8217;ve bought brand-new hardware that requires&nbsp;<span class="caps">SL</span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2010/02/02/snow-leopard-still-a-mixed-bag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>checking auth in Apache over LDAP with OS X</title>
		<link>http://slagwerks.com/blog/index.php/2009/05/27/checking-auth-in-apache-over-ldap-with-os-x/</link>
		<comments>http://slagwerks.com/blog/index.php/2009/05/27/checking-auth-in-apache-over-ldap-with-os-x/#comments</comments>
		<pubDate>Wed, 27 May 2009 15:32:57 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/?p=291</guid>
		<description><![CDATA[Here&#8217;s the configuration I&#8217;ve been working on: control access to Apache webserver by checking (over LDAP) against our existing user database, held in an OS X Open Directory. It&#8217;s taken me more casting about than I&#8217;d expected, but it looks like I&#8217;m finally&#160;there. In the beginning, I got a little confused by the HTTP auth [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the configuration I&#8217;ve been working on: control access to Apache webserver by checking (over <span class="caps">LDAP</span>) against our existing user database, held in an <span class="caps">OS</span> X Open Directory. It&#8217;s taken me more casting about than I&#8217;d expected, but it looks like I&#8217;m finally&nbsp;there.</p>
<p>In the beginning, I got a little confused by the <span class="caps">HTTP</span> auth options. I&#8217;d been hoping to use Digest mode, but a comment on <a href="http://www.latenightpc.com/blog/archives/2007/08/31/no-authtype-digest-with-ldap-authentication-provider-for-apache-today">this post</a> points out the logical problem with that: Digest doesn&#8217;t involve the password making its way to Apache, so there&#8217;s no way for it to pass the password along over&nbsp;<span class="caps">LDAP</span>.</p>
<p><span class="caps">BTW</span> this is under Tiger (<span class="caps">OS</span> X 10.4)&thinsp;&#8212;&thinsp;I&#8217;m not sure if anything changes with other versions of <span class="caps">OS</span>&nbsp;X.</p>
<p>Once figuring out that I did need to use Basic auth, <a href="http://www.productionmonkeys.net/guides/web-server/apache/ldap-authentication">Production Monkeys</a> got me most of the way with my Apache config. What I missed is that, at least with our <span class="caps">OD</span> configuration, it&#8217;s necessary to include the server name in the dc list. Here&#8217;s what worked for&nbsp;me:</p>
<p><code>&lt;Location "/somewhere"&gt;<br />
AuthType Basic<br />
AuthName "Whatever You Call This Auth"<br />
Require valid-user<br />
AuthBasicProvider ldap<br />
AuthLDAPURL ldap://servername.yourdomain.org/cn=users,dc=servername,dc=yourdomain,dc=org?uid<br />
AuthzLDAPAuthoritative off<br />&nbsp;&lt;/Location&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2009/05/27/checking-auth-in-apache-over-ldap-with-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsnapshot &amp; OS X notes, a.k.a. turn tabs back on</title>
		<link>http://slagwerks.com/blog/index.php/2008/10/31/rsnapshot-os-x-notes-aka-turn-tabs-back-on/</link>
		<comments>http://slagwerks.com/blog/index.php/2008/10/31/rsnapshot-os-x-notes-aka-turn-tabs-back-on/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 18:24:38 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rsnapshot]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/?p=143</guid>
		<description><![CDATA[Because rsync 3 is one of if not the only OS X backup solutions that actually gets all the possible forms of metadata, I&#8217;m in the market for a backup solution that uses it. The current candidate is rsnapshot, a 6000 line perl program (!), conveniently located in macports, that wraps rsync to do smart [...]]]></description>
			<content:encoded><![CDATA[<p>Because rsync 3 is one of if not the only <span class="caps">OS</span> X backup solutions that actually gets all the possible forms of metadata, I&#8217;m in the market for a backup solution that uses it. The current candidate is <a href="http://rsnapshot.org/">rsnapshot</a>, a 6000 line perl program (!), conveniently located in macports, that wraps rsync to do smart backup things like keep snapshots via hard links. Thanks to the <a href="http://oreilly.com/catalog/9780596102463/">O&#8217;Reilly Backup book</a> for pointing me to&nbsp;it.</p>
<ul>
<li>It&#8217;s pretty easy to set up to run locally. The main trick is that the configuration file requires tabs. First time in ~10 years I&#8217;ve had to turn tabs back on in vim (<code>:set&nbsp;noexpandtab</code>).</li>
<li>For <span class="caps">OS</span> X, we want the magic<code> -aNHAXx --fileflags --force-change</code> args to make rsync behave properly with all the&nbsp;metadata.</li>
<li><span class="caps">OS</span> X has a weird directory structure, so if you try to backup <code>/etc</code> you just get the symlink that is to <code>/private/etc</code>, or if you try to exclude something under <code>/var</code>, you miss it because it&#8217;s really <code>/private/var/bigdirectory</code>.&nbsp;Buzzkill.</li>
<li>Lchown.pm is necessary for symlinks to have <a href="http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/rsnapshot-24/could-not-lchown-symlink-89132/">the right ownership in snapshots</a>.&nbsp;<span class="caps">CPAN</span>&#8217;d.</li>
<li>Running things automatically on <span class="caps">OS</span> X as the privileged user is a bit odd, lacking as it does a traditional root account. Sudo does nicely, with <code>NOPASSWD: /opt/local/bin/rsnapshot<br />
</code> on the backup machine. For the clients we need <a href="http://troy.jdmz.net/rsnapshot/">appropriate ssh settings</a>, with <a href="http://osdir.com/ml/sysutils.backup.rsnapshot.general/2006-07/msg00029.html">some tricks to run sudo on the remote machine</a>. Getting this running took a while, since I missed the fact that running rsnapshot via sudo on the backup machine meant that rsync would try to use root&#8217;s ssh key, not the backup user&#8217;s&thinsp;&#8212;&thinsp;fixed this with the <code>-i</code> arg to&nbsp;ssh.</li>
<li>Restoring backups is just a matter of copying them from the appropriate snapshot dir, probably using rsync <span class="amp">&amp;</span> the same arguments rsnapshot uses (easily extracted from the rsnapshot&nbsp;log).</li>
<li>Multiple servers are done serially. If you wanted to run backups in parallel, you&#8217;d need one configuration file for every server you&#8217;re backing up, and <a href="http://sourceforge.net/mailarchive/message.php?msg_name=AoEbs7CweQB%40helmut.hullen.de">they each need their own snapshot_root, logfile, and lockfile.</a> For my installation, this&#8217;d be more trouble than it&#8217;s worth.<a href="http://sourceforge.net/mailarchive/message.php?msg_name=AoEbs7CweQB%40helmut.hullen.de"><br />
</a></li>
</ul>
<p>Another issue that temporarily gave me pause, now that we&#8217;ve got everything backed up with presumably correct permissions, is that our off-site backup procedures involve creating tar files <span class="amp">&amp;</span> encrypting them. Fortunately, backup bouncer shows that <span class="caps">OS</span> X tar gets all the important stuff right, though it&#8217;s no rsync&nbsp;v3.</p>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2008/10/31/rsnapshot-os-x-notes-aka-turn-tabs-back-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>latest macports rsync is actually getting all OS X metadata</title>
		<link>http://slagwerks.com/blog/index.php/2008/10/21/rsync-andor-leopard-closer-yet-to-getting-all-os-x-metadata/</link>
		<comments>http://slagwerks.com/blog/index.php/2008/10/21/rsync-andor-leopard-closer-yet-to-getting-all-os-x-metadata/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 20:34:35 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Backup Bouncer]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/?p=138</guid>
		<description><![CDATA[Update: I&#8217;d forgotten to check the flags that had been missing from the macport version last time around, but they&#8217;re all there. Now, running rsync -aNHAXx --fileflags --force-change /Volumes/Src/ /Volumes/rsync3test passes every bbouncer test!&#160;Cool. Original post: On Leopard (10.5.5) using rsync 3.0.4 from macports, a few more tests are passing backup bouncer 0.1.3 (compare to [...]]]></description>
			<content:encoded><![CDATA[<p><em>Update: </em>I&#8217;d forgotten to check the flags that had been missing from the macport version last time around, but they&#8217;re all there. Now, running <code>rsync -aNHAXx --fileflags --force-change /Volumes/Src/ /Volumes/rsync3test</code> passes every bbouncer test!&nbsp;Cool.</p>
<p><em>Original post:</em> On Leopard (10.5.5) using rsync 3.0.4 from macports, a few more tests are passing backup bouncer 0.1.3 (compare to <a href="http://slagwerks.com/blog/index.php/2008/06/10/latest-rsync-looking-good-for-os-x-metadata/">my June&nbsp;post</a>):</p>
<pre><code>
$ sudo ./bbouncer verify -d /Volumes/Src/ /Volumes/rsync3test/
Verifying:    basic-permissions ... ok (Critical)
Verifying:           timestamps ... ok (Critical)
Verifying:             symlinks ... ok (Critical)
Verifying:    symlink-ownership ... ok
Verifying:            hardlinks ... ok (Important)
Verifying:       resource-forks ...
   Sub-test:             on files ... ok (Critical)
   Sub-test:  on hardlinked files ... ok (Important)
Verifying:         finder-flags ... ok (Critical)
Verifying:         finder-locks ... FAIL
Verifying:        creation-date ... FAIL
Verifying:            bsd-flags ... ok
Verifying:       extended-attrs ...
   Sub-test:             on files ... ok (Important)
   Sub-test:       on directories ... ok (Important)
   Sub-test:          on symlinks ... ok
Verifying: access-control-lists ...
   Sub-test:             on files ... ok (Important)
   Sub-test:              on dirs ... ok (Important)
Verifying:                 fifo ... ok
Verifying:              devices ... ok
Verifying:          combo-tests ...
   Sub-test:  xattrs + rsrc forks ... ok
   Sub-test:     lots of metadata ... ok
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2008/10/21/rsync-andor-leopard-closer-yet-to-getting-all-os-x-metadata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>latest rsync looking good for OS X metadata</title>
		<link>http://slagwerks.com/blog/index.php/2008/06/10/latest-rsync-looking-good-for-os-x-metadata/</link>
		<comments>http://slagwerks.com/blog/index.php/2008/06/10/latest-rsync-looking-good-for-os-x-metadata/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 19:02:45 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Backup Bouncer]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/?p=56</guid>
		<description><![CDATA[As regular readers saw earlier, I&#8217;ve been casting about trying to find an open source backup solution that handles OS X metadata reliably. Having been disappointed by rdiff-backup, I&#8217;ve turned by eyes to the similar rsnapshot project, which uses the venerable&#160;rsync. Since macports includes the latest version of rsync, 3.0.2, I gave it a try [...]]]></description>
			<content:encoded><![CDATA[<p>As regular readers <a href="http://slagwerks.com/blog/index.php/tag/backup/">saw earlier</a>, I&#8217;ve been casting about trying to find an open source backup solution that handles <span class="caps">OS</span> X metadata reliably. Having been disappointed by rdiff-backup, I&#8217;ve turned by eyes to the similar rsnapshot project, which uses the venerable&nbsp;rsync. </p>
<p>Since macports includes the latest version of rsync, 3.0.2, I gave it a try with the familiar <code>rsync -avz /from /to</code> syntax, but it performed disappointingly on n8&#8217;s handy Backup Bouncer test suite. <a href="http://www.bombich.com/mactips/rsync.html">Thanks to Mike Bombich</a>, I learned about some extra flags to add (though my copy of rsync doesn&#8217;t seem to know about the -N or&thinsp;&#8212;&thinsp;fileflags he&nbsp;has):</p>
<pre><code>
$ sudo rsync -aHAXx  /Volumes/Src/ /Volumes/rsynctest/
$ ./bbouncer verify -d /Volumes/Src/ /Volumes/rsynctest/
Verifying:    basic-permissions ... ok
Verifying:           timestamps ...
   Sub-test:    modification time ... ok
ok
Verifying:             symlinks ... ok
Verifying:    symlink-ownership ... ok
Verifying:            hardlinks ... ok
Verifying:       resource-forks ... ok
Verifying:         finder-flags ... ok
Verifying:         finder-locks ... FAIL
Verifying:        creation-date ... FAIL
Verifying:            bsd-flags ... FAIL
Verifying:       extended-attrs ...
   Sub-test:             on files ... ok
   Sub-test:       on directories ... ok
   Sub-test:          on symlinks ... ok
ok
Verifying: access-control-lists ...
   Sub-test:             on files ... ok
   Sub-test:              on dirs ... ok
ok
Verifying:                 fifo ... FAIL
Verifying:              devices ... FAIL
Verifying:          combo-tests ...
   Sub-test:  xattrs + rsrc forks ... ok
   Sub-test:     lots of metadata ... ok
ok
</code></pre>
<p>Sure, there are a few <span class="caps">FAILS</span> in there, but they&#8217;re not&nbsp;<em>important:</em></p>
<pre><code>
$ ./bbouncer verify -T important -d /Volumes/Src/ /Volumes/rsynctest/
Verifying:    basic-permissions ... ok
Verifying:           timestamps ...
   Sub-test:    modification time ... ok
ok
Verifying:             symlinks ... ok
Verifying:            hardlinks ... ok
Verifying:       resource-forks ... ok
Verifying:         finder-flags ... ok
Verifying:       extended-attrs ...
   Sub-test:             on files ... ok
   Sub-test:       on directories ... ok
   Sub-test:          on symlinks ... ok
ok
Verifying: access-control-lists ...
   Sub-test:             on files ... ok
   Sub-test:              on dirs ... ok
ok
</code></pre>
<p>(note the <code>-T important</code> flag telling Backup Bouncer to remove the extra-finicky tests). Good enough! On to get familiar with&nbsp;rsnapshot.</p>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2008/06/10/latest-rsync-looking-good-for-os-x-metadata/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>rdiff-backup 1.1.15 better with OS X metadata, but still room for improvement</title>
		<link>http://slagwerks.com/blog/index.php/2008/06/09/rdiff-backup-1115-better-with-os-x-metadata-but-still-room-for-improvement/</link>
		<comments>http://slagwerks.com/blog/index.php/2008/06/09/rdiff-backup-1115-better-with-os-x-metadata-but-still-room-for-improvement/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 21:22:38 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Backup Bouncer]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rdiff-backup]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/?p=55</guid>
		<description><![CDATA[I&#8217;ve finally had the chance to repeat my test of the rdiff-backup-devel package from MacPorts, using the same steps as I used for the stable package. The results are better but not&#160;fantastic: $ ./bbouncer verify -d /Volumes/Src/ /Volumes/rdifftest Verifying: basic-permissions ... ok Verifying: timestamps ... Sub-test: modification time ... ok ok Verifying: symlinks ... ok [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally had the chance to repeat my test of the rdiff-backup-devel package from MacPorts, using <a href="http://slagwerks.com/blog/index.php/2008/06/06/the-stable-rdiff-backup-is-not-looking-so-hot-for-metadata-on-os-x/">the same steps as I used for the stable package</a>. The results are better but not&nbsp;fantastic:</p>
<pre><code>$ ./bbouncer  verify -d /Volumes/Src/ /Volumes/rdifftest
Verifying:    basic-permissions ... ok
Verifying:           timestamps ...
   Sub-test:    modification time ... ok
ok
Verifying:             symlinks ... ok
Verifying:    symlink-ownership ... ok
Verifying:            hardlinks ... ok
Verifying:       resource-forks ... ok
Verifying:         finder-flags ... FAIL
Verifying:         finder-locks ... FAIL
Verifying:        creation-date ... ok
Verifying:            bsd-flags ... FAIL
Verifying:       extended-attrs ...
   Sub-test:             on files ... ok
   Sub-test:       on directories ... ok
   Sub-test:          on symlinks ... FAIL
FAIL
Verifying: access-control-lists ...
   Sub-test:             on files ... FAIL
   Sub-test:              on dirs ... FAIL
FAIL
Verifying:                 fifo ... ok
Verifying:              devices ... ok
Verifying:          combo-tests ...
   Sub-test:  xattrs + rsrc forks ... ok
   Sub-test:     lots of metadata ... FAIL
FAIL
</code></pre>
<p>With <a href="http://www.jeffawaddell.com/2008/04/backupbouncer-metadata-tests.html">promising reports out on rsync 3</a>, looks like it&#8217;s time to take another look at&nbsp;<a href="http://www.rsnapshot.org/">rsnapshot</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2008/06/09/rdiff-backup-1115-better-with-os-x-metadata-but-still-room-for-improvement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the stable rdiff-backup is not looking so hot for metadata on OS X</title>
		<link>http://slagwerks.com/blog/index.php/2008/06/06/the-stable-rdiff-backup-is-not-looking-so-hot-for-metadata-on-os-x/</link>
		<comments>http://slagwerks.com/blog/index.php/2008/06/06/the-stable-rdiff-backup-is-not-looking-so-hot-for-metadata-on-os-x/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 16:32:56 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Backup Bouncer]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rdiff-backup]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/?p=54</guid>
		<description><![CDATA[Preamble: after a bunch of research, rdiff-backup looked like a good open source solution for OS X backup. And it&#8217;s in&#160;macports! Wrinkle: after getting further into my current backup project, I&#8217;ve become more aware of the difficulty of getting all of the various forms of OS X metadata backed up. Some research revealed the tool [...]]]></description>
			<content:encoded><![CDATA[<p>Preamble: after a bunch of research, rdiff-backup looked like a good open source solution for <span class="caps">OS</span> X backup. And it&#8217;s in&nbsp;<a href="http://www.macports.org/">macports</a>!</p>
<p>Wrinkle: after getting further into my current backup project, I&#8217;ve become more aware of the difficulty of getting all of the various forms of <span class="caps">OS</span> X metadata backed up. Some research revealed the tool <a href="http://www.n8gray.org/code/backup-bouncer/">Backup Bouncer</a>, which provides a way to run some tricky tests on any <span class="caps">OS</span> X backup system. Here I&#8217;m using the latest bbouncer (0.1.2), on a 10.4.11 system all patched up through security update&nbsp;2008-03.</p>
<p>The stable version of rdiff-backup in macports is 1.0.5, which is what&#8217;s being used for the following tests. I&#8217;ve poked at both this and the rdiff-backup-devel version, which is 1.1.15, but it doesn&#8217;t automatically pull in the xattr module from macports. I&#8217;ll retest with that version later. Also note that the bbouncer results don&#8217;t suggest that xattr is doing 1.0.5 much&nbsp;good. </p>
<pre><code>$ ./bbouncer create-vol rdifftest
$ sudo rdiff-backup /Volumes/Src /tmp/bb
$ sudo rdiff-backup --force -r 1D /tmp/bb /Volumes/rdifftest/
$ ./bbouncer verify -d /Volumes/Src/ /Volumes/rdifftest/
Verifying:    basic-permissions ... ok
Verifying:           timestamps ...
   Sub-test:    modification time ... ok
ok
Verifying:             symlinks ... ok
Verifying:    symlink-ownership ... ok
Verifying:            hardlinks ... ok
Verifying:       resource-forks ... FAIL
Verifying:         finder-flags ... FAIL
Verifying:         finder-locks ... FAIL
Verifying:        creation-date ... FAIL
Verifying:            bsd-flags ... FAIL
Verifying:       extended-attrs ...
   Sub-test:             on files ... FAIL
   Sub-test:       on directories ... FAIL
   Sub-test:          on symlinks ... FAIL
FAIL
Verifying: access-control-lists ...
   Sub-test:             on files ... FAIL
   Sub-test:              on dirs ... FAIL
FAIL
Verifying:                 fifo ... FAIL
Verifying:              devices ... FAIL
Verifying:          combo-tests ...
   Sub-test:  xattrs + rsrc forks ... FAIL
   Sub-test:     lots of metadata ... FAIL
FAIL</code></pre>
<p>That&#8217;s a whole lot of <span class="caps">FAIL</span>, especially compared to the built-in <span class="caps">OS</span> X rsync, which passes on resource forks and finder flags, extended attributes for files and directories, ACLs, and the last few&nbsp;tests.</p>
<p>Granted, there are a bunch of things being tested by bbouncer that may or may not be of interest to the average user. A <a href="http://www.n8gray.org/blog/2008/06/02/backup-bouncer-is-working/">recent post by the author</a> points out that bbouncer has a -T flag for indicating which level of paranoia to run at. Rerunning the test for rdiff-backup 1.0.5 with only critical tests is somewhat&nbsp;instructive:</p>
<pre><code>$ ./bbouncer verify -d -T critical /Volumes/Src/ /Volumes/rdifftest/
Verifying:    basic-permissions ... ok
Verifying:           timestamps ...
   Sub-test:    modification time ... ok
ok
Verifying:             symlinks ... ok
Verifying:       resource-forks ... FAIL
Verifying:         finder-flags ... FAIL</code></pre>
<p>Compare to <span class="caps">OS</span> X&#8217;s&nbsp;rsync:</p>
<pre><code>$ ./bbouncer verify -d -T critical /Volumes/Src/ /Volumes/Dst/10-rsync-apple/
Verifying:    basic-permissions ... ok
Verifying:           timestamps ...
   Sub-test:    modification time ... ok
ok
Verifying:             symlinks ... ok
Verifying:       resource-forks ... ok
Verifying:         finder-flags ... ok</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2008/06/06/the-stable-rdiff-backup-is-not-looking-so-hot-for-metadata-on-os-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Those who abstain from the command line, avert thy eyes</title>
		<link>http://slagwerks.com/blog/index.php/2008/04/12/those-who-abstain-from-the-command-line-avert-thy-eyes/</link>
		<comments>http://slagwerks.com/blog/index.php/2008/04/12/those-who-abstain-from-the-command-line-avert-thy-eyes/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 15:43:22 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/index.php/2008/04/12/those-who-abstain-from-the-command-line-avert-thy-eyes/</guid>
		<description><![CDATA[Here&#8217;s my top 10 command line entries, according to history &#124; awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}' &#124; sort -rn &#124;&#160;head 125 svn 58 ls 38 symfony 37 gvim 36 vim 36 cd 34 php 20 uptime 14 ssh 10&#160;lighttpd Idea &#38; shell magic via Bill de Hóra. You can see that my recent work [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my top 10 command line entries, according to <code>history | awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}' | sort -rn |&nbsp;head</code></p>
<blockquote><p>125   svn<br />
58   ls<br />
38   symfony<br />
37   gvim<br />
36   vim<br />
36   cd<br />
34   php<br />
20   uptime<br />
14   ssh<br />
10&nbsp;lighttpd</p></blockquote>
<p>Idea <span class="amp">&amp;</span> shell magic via <a href="http://www.dehora.net/journal/2008/04/10/that-looks-about-right/">Bill de Hóra</a>. You can see that my recent work has been symfony-heavy (that&#8217;s what all the php is for,&nbsp;too).</p>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2008/04/12/those-who-abstain-from-the-command-line-avert-thy-eyes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
