<?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>Adrian Smith&#039;s Blog &#187; mac</title>
	<atom:link href="http://www.17od.com/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.17od.com</link>
	<description></description>
	<lastBuildDate>Sun, 20 Nov 2011 20:04:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Windows and Mac backups using rdiff-backup</title>
		<link>http://www.17od.com/2006/10/30/windows-and-mac-backups-using-rdiff-backup/</link>
		<comments>http://www.17od.com/2006/10/30/windows-and-mac-backups-using-rdiff-backup/#comments</comments>
		<pubDate>Mon, 30 Oct 2006 15:59:52 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[rdiff-backup]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.17od.com/2006/10/30/windows-and-mac-backups-using-rdiff-backup/</guid>
		<description><![CDATA[I&#8217;ve got two machines that I need to backup, an iMac running OS X 10.0.3 and a Dell running Windows XP. The iMac is the primary home machine with about 13Gb of pictures, music, documents, etc, etc. The Dell is more of a development machine with about 1Gb of files to backup. I wanted a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got two machines that I need to backup, an iMac running OS X 10.0.3 and a Dell running Windows XP. The iMac is the primary home machine with about 13Gb of pictures, music, documents, etc, etc. The Dell is more of a development machine with about 1Gb of files to backup.</p>
<p>I wanted a backup medium that I could use on both machines. I&#8217;ve never been a big fan of tape backup solutions. They&#8217;re just too expensive and difficult to use in a home environment. Because I don&#8217;t have a huge amount of stuff to backup I decided to go with an external harddrive. They&#8217;re cheap, easy to setup and I could use it on both machines. In the end I went for a <a title="WD My Book" href="http://www.wdmybook.com/">WD My Book</a>. It&#8217;s a little bit more expensive then a basic harddrive and enclosure but not so much that it turned me off. I went with the Premium version because it had the Firewire connection. If I were buying it again I don&#8217;t think I&#8217;d bothered with the Premium edition because when all you&#8217;re backing up is thousands of relatively small files it&#8217;s the processing time that slows the process down not the speed of the connection to the harddrive.</p>
<p>With the medium chosen I then had a look around for some backup software. I wanted something that was opensource and cross platform so that I only had to learn how to use one program. There&#8217;s very little out there that&#8217;s easy to understand and use. The basic programs just don&#8217;t instill any confidence while the feature rich programs are just too complicated and more suited to business environments. The most popular program seems to be <a title="AMANDA" href="http://www.amanda.org/">AMANDA</a>. The problem with AMANDA is that it&#8217;s far too complicated for a simple home backup solution (in my mind anyway). The program I finally settled for was <a title="rdiff-backup" href="http://www.nongnu.org/rdiff-backup/">rdiff-backup</a>. It&#8217;s not too complicated and has all the basic features I need, it&#8217;s open source, it&#8217;s cross platform and it has a user community.</p>
<p>Something that I sort of forgot about up to this point was the filesystem to use on the external harddrive. If you&#8217;re only backing up a Windows machine then I suggest you format your target backup drive as NTFS. If you&#8217;re on Mac then use HFS and if you&#8217;re on Linux use ext3 or whatever you prefer. If however you want to be able to see the same partition from both Windows and Mac (like I do) then you MUST use FAT32. The reason for this is because OS X cannot write to NTFS (only read) and Windows certainly cannot write or read HFS. The only common filesystem that the two OSes can write to is FAT32. The only potential problem with this is that FAT32 only supports files up to 4Gb in size. For me this isn&#8217;t a problem but if you have a lot of videos you may find that some exceed this limit. If this happens then you could just create two partitions on the external harddrive, one HFS for your Mac backups and one NTFS for your Windows backups. You won&#8217;t be able to see the HFS partition from Windows but if that&#8217;s not a problem for you then this might be the best approach all round. The other drawback with FAT32 is that Windows will only allow you to create a partition that&#8217;s 32Gb in size. The strange thing is that Windows can reference a FAT32 partition that&#8217;s up to 2Tb in size. To create a partition greater that 32Gb WD have a tool for the My Book called the <a title="WD FAT32 Formatter" href="http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1364&#038;p_created=1117047065&#038;p_sid=dL84lpli&#038;p_lva=&#038;p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9NTImcF9wcm9kcz0mcF9jYXRzPSZwX3B2PSZwX2N2PSZwX3NlYXJjaF90eXBlPXNlYXJjaF9mbmwmcF9wYWdlPTEmcF9zZWFyY2hfdGV4dD1GQVQzMiBmb3JtYXR0ZXI*&#038;p_li=&#038;p_topview=1">WD FAT32 Formatter</a>. There&#8217;s probably generic tools out there that will do this for any harddrive.</p>
<p><strong>rdiff-backup on Mac OS X</strong><br />
The first machine I backed up was the iMac. Because I might be restoring onto a completely clean machine I created a folder on the external harddrive with all the software that&#8217;s needed to install and run rdiff-backup. Into this directory I put&#8230;</p>
<ul>
<li><a href="http://www.nongnu.org/rdiff-backup">rdiff-backup 1.1.5</a></li>
<li><a href="http://librsync.sourceforge.net">librsync 0.9.7</a></li>
<li><a href="http://www.17od.com/wordpress/wp-content/uploads/2007/11/fs_abilitiespy.patch" title="A patch I needed get rdiff-backup working on OS X">A patch I needed get rdiff-backup working on OS X</a> (I got the patch from this useful post <a href="http://katastrophos.net/andre/blog/?p=19">http://katastrophos.net/andre/blog/?p=19</a>)</li>
</ul>
<p><strong>Installing librsync on Mac OS X</strong><br />
=> tar -xzvf librsync-0.9.7.tar.gz<br />
=> cd librsync-0.9.7<br />
=> ./configure<br />
=> make all<br />
=> make check (not necessary)<br />
=> sudo make install</p>
<p><strong>Installing rdiff-backup </strong><strong>on Mac OS X</strong><br />
=> tar -xzvf rdiff-backup-1.1.5.tar.gz<br />
=> cp fs_abilities.py.patch rdiff-backup-1.1.5/rdiff_backup<br />
=> cd rdiff-backup-1.1.5/rdiff_backup<br />
=> patch &lt; fs_abilities.py.patch<br />
=> cd ..<br />
=> sudo python setup.py install<br />
(Create symbolic links in your bin directory for the two rdiff programs)<br />
=> sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.3/bin/rdiff-backup /usr/bin/rdiff-backup<br />
=> sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.3/bin/rdiff-backup-statistics /usr/bin/rdiff-backup-statistics</p>
<p><strong>Preparing rdiff-backup on Mac OS X<br />
</strong>rdiff-backup lets you explicitly list the files and directories you want to backup in an external file called the &#8220;globbing filelist&#8221;. Here&#8217;s what&#8217;s in mine&#8230;</p>
<pre>/Users/adriansmith/Desktop
/Users/adriansmith/dev
/Users/adriansmith/Documents
/Users/adriansmith/Movies
/Users/adriansmith/Music
/Users/adriansmith/Pictures
/Users/adriansmith/Shared
/Users/adriansmith/Sites</pre>
<p>A very important point to note (although more important on the windows platform) is that this file should be saved in UNIX format. If it&#8217;s saved in Windows format rdiff-backup will not read it correctly.</p>
<p><strong>Running rdiff-backup on Mac OS X<br />
</strong></p>
<pre>rdiff-backup -v5 --print-statistics --include-globbing-filelist '/Volumes/My Book/instructions/mac/files-to-include.txt' --exclude-special-files --exclude / / '/Volumes/My Book/mac'</pre>
<p><strong><em>-v5</em></strong> : Verbosity level<br />
<em><strong> &#8211;print-statistics</strong></em> : When the backup is finished a summary will be displayed<br />
<em><strong> &#8211;include-globbing-filelist</strong></em> : Followed by the file that contains the list of files &#038; directories to backup<br />
<em><strong> &#8211;exclude-special-files</strong></em> : Exclude all device files, fifo files, socket files, and symbolic links<br />
<em><strong> &#8211;exclude /</strong></em> : Excludes everything from the root directory (weird I know but by including this you&#8217;re saying that you only want to include the files/directories specifically mentioned in the globbing file<br />
<em><strong> /</strong></em> : The source directory<br />
<em><strong> &#8216;/Volumes/My Book/mac&#8217;</strong></em> : The destination directory, in this case a directory called mac on my external harddrive</p>
<p><strong>rdiff-backup on Windows XP</strong><br />
On my Windows machine I again created a folder on the external harddrive containing all the software needed to get rdiff-backup up and running. It contains&#8230;</p>
<ul>
<li><a href="http://www.cygwin.com/">Cygwin</a> (because rdiff-backup requires a POSIX operating system, like Linux or Mac OS X)</li>
<li><a href="http://www.nongnu.org/rdiff-backup">rdiff-backup 1.1.5</a></li>
<li><a href="http://librsync.sourceforge.net/">librsync 0.9.7</a></li>
<li><a href="http://www.17od.com/wordpress/wp-content/uploads/2007/11/rpath-fsync.patch" title="A patch needed get rdiff-backup working on Windows">A patch needed get rdiff-backup working on Windows</a></li>
</ul>
<p><strong>Installing Cygwin on Windows XP<br />
</strong>=> Run setup.exe<br />
=> Go with the default selected packages to install but select the following as well,</p>
<ul>
<li>Devel/ autoconf, automake, binutils, gcc, make, patchutils</li>
<li>Interpreters/ python</li>
<li>Web/ wget</li>
</ul>
<p><strong>Installing librsync on Windows XP<br />
</strong>=> tar -xzvf librsync-0.9.7.tar.gz<br />
=> cd librsync-0.9.7<br />
=> ./configure &#8211;prefix=/usr &#8211;bindir=/bin &#8211;libdir=/lib<br />
=> make all<br />
=> make install</p>
<p><strong>Installing rdiff-backup on Windows XP</strong><br />
=> tar -xzvf rdiff-backup-1.1.5.tar.gz<br />
=> cp rpath-fsync.patch rdiff-backup-1.1.5/rdiff_backup<br />
=> cd rdiff-backup-1.1.5/rdiff_backup<br />
=> patch &lt; rpath-fsync.patch<br />
=> cd ..<br />
=> python setup.py install</p>
<p><strong>Preparing rdiff-backup on Windows XP</strong><br />
To run rdiff-backup I again created a file containing all the files and directories I wanted to backup. Here&#8217;s what it contains&#8230;</p>
<pre>/cygdrive/c/Documents and Settings/Adrian Smith/My Documents
/cygdrive/c/projects</pre>
<p>IMPORTANT: This file MUST be saved in UNIX format. If you use Notepad or any other program that saves in Windows format rdiff-backup will not work. I use <a href="http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/default.htm">PFE</a> but there are plenty of other equally capable editors out there.</p>
<p><strong>Running rdiff-backup on Windows XP<br />
</strong>Finally, to run rdiff-backup&#8230;</p>
<pre>rdiff-backup -v5 --print-statistics --include-globbing-filelist /cygdrive/e/instructions/windows/files-to-include.txt --exclude /cygdrive/c /cygdrive/c /cygdrive/e/dell</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.17od.com/2006/10/30/windows-and-mac-backups-using-rdiff-backup/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Where&#8217;s JAVA_HOME on my Mac OS X?</title>
		<link>http://www.17od.com/2005/07/13/wheres-java_home-on-my-mac-os-x/</link>
		<comments>http://www.17od.com/2005/07/13/wheres-java_home-on-my-mac-os-x/#comments</comments>
		<pubDate>Thu, 14 Jul 2005 00:07:06 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://70.103.16.167/~onesevod/?p=7</guid>
		<description><![CDATA[I was installing CruiseControl on my Mac the other day when I realized that I needed to have JAVA_HOME set. Running which java returned /usr/bin/java. This was a symbolic link to the file /System/Library/Frameworks/JavaVM.framework/Commands/java. Eventually I figured out that the path I was looking for was /System/Library/Frameworks/JavaVM.framework/Home.]]></description>
			<content:encoded><![CDATA[<p>I was installing CruiseControl on my Mac the other day when I realized that I needed to have JAVA_HOME set. Running <code>which java</code> returned <code>/usr/bin/java</code>. This was a symbolic link to the file <code>/System/Library/Frameworks/JavaVM.framework/Commands/java</code>. Eventually I figured out that the path I was looking for was <code>/System/Library/Frameworks/JavaVM.framework/Home</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.17od.com/2005/07/13/wheres-java_home-on-my-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title># Symbol in Mac OS X</title>
		<link>http://www.17od.com/2005/02/28/symbol-in-mac-os-x/</link>
		<comments>http://www.17od.com/2005/02/28/symbol-in-mac-os-x/#comments</comments>
		<pubDate>Tue, 01 Mar 2005 01:01:33 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://70.103.16.167/~onesevod/?p=11</guid>
		<description><![CDATA[I&#8217;m relatively new to the Mac and I&#8217;ve just realised there&#8217;s no hash (or pound as I think our American friends call it) key on the keyboard. After a quick google I found that you need to press Alt-3. Do Apple not ship European keyboards?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m relatively new to the Mac and I&#8217;ve just realised there&#8217;s no hash (or pound as I think our American friends call it) key on the keyboard. After a quick google I found that you need to press Alt-3. Do Apple not ship European keyboards?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.17od.com/2005/02/28/symbol-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

