13 Oct 2007

Synching my Macs part two

Back in April, I wrote about trying to sync two computers via a server. It actually worked pretty well for quite a long time, but for a number of reasons, I've recently changed how I sync them. By coincidence, Merlin Mann issued a Geek Throwdown to ask people how they manage to sync two or more Macs, so I thought I'd write about my new method.

The old way involved using a self-written script to rsync files in ~/sync to my Strongspace online file space. This served as an intermediary, so that I would sync up my files to Strongspace before leaving work, then sync them down to my home computer on reaching home, reversing the process when leaving home again. As I said, it worked well, but had a few drawbacks.

  1. The obvious one is that it requires working Internet connection, and for Strongspace to be operational. This wasn't a practical problem for almost all of the time, but I've had a couple of instances (when I'm about to start work or leave for home, of course) when I lost the network or Strongspace went down.
  2. The more pressing problem was that synching various files from ~/Library required an elaborate system of symlinks, and I had to keep my documents folder in ~/sync/Documents. This got rather tiresome to maintain, partly because quite a few applications dump files like templates into ~/Documents, without allowing you to change the location.
  3. I wanted to start syncing my Movies and Pictures folders as well, but that was going to strain bandwidth and storage space on Strongspace, and would require yet more symlinking jiggery-pokery.
  4. By using rsync, I tended to lose the metadata associated with files (like Finder labels). This wasn't a huge deal, but it was annoying.

So now I do what I probably should have done in the first place, and use a 2.5 inch external hard drive to sync more or less the whole of my home folder using ChronoSync. ChronoSync has quite useful and easy to understand rules for including or excluding items, so I can easily tell it to exclude all of ~/Library/Preferences except for the Mail preferences for example. Otherwise, I include everything in home except for my .ssh directory and one or two other config files, my Preferences folder (because I have a lot of preferences set differently on the two computers), Logs and Caches. I've also stopped using .Mac sync, and now sync my Mail mailboxes and settings, Keychains, bookmarks (and history) and so on using ChronoSync. ChronoSync is very quick, and there's a 'Trial Sync' feature showing what is going to get copied in each direction, which is reassuring, particularly when you start using it. Deleted files get put in an '_Archived Items' folder, so if something does go wrong with the odd file, you can just drag it back to its rightful place.

It's pretty easy in practice. You have to remember to quit applications that might hang on to a database (like Address Book) before you sync, but the 'bi-directional sync' does a very good job of working out what needs to be updated in which direction. I sync up before I leave for work to the drive, connect the drive to my work Mac, sync again, then once again before I leave for home. It does mean that I have to carry the drive around, but it's pretty light and small, so that's not a huge problem. It also means that I miss out on having a current copy of my files genuinely offsite on Strongspace, but I suppose I could mirror my files once a day to Strongspace anyway.

I'm pretty happy with the way it's working. When I get home, I can open Safari, use the 'Reopen all windows from last session' command (I'm using the Safari 3 beta), and have all the pages I was looking at while at work open up, as well as the associated history. I've also changed the way I access my email, which I'll talk about in a later article.

  1. 1

    To interconnecty the computybox with distancy equallybits without sillybold the upfallopty using the methodibode correct with the mathification of the baudibits and the upstreamdownblode – Then quickasaflash the skylode in the electrorotaty thing all with the same bish-bash ……… Deep joy.

    by Jonathan Briggs @ 15/10/2007 3:26 pm • Permalink

  • 2

    Silence, like a small Malteser in the middle of a dark room. Bsag sullenly pokes at her flux capacitor, nibbling on a home-grown carrot...

    by Lighty @ 15/10/2007 9:02 pm • Permalink

  • 3

    Wot Briggsy said!

    by Mr.D. @ 16/10/2007 12:33 pm • Permalink

  • 4

    i have to concur with the briggsatron interesting re rsync/backup -- i just spent some time looking at various backup options. the big problem with rsync you've already discovered -- it's not mac-friendly and can't be used for real backups. it wipes all metadata AND all resource forks (altho this varies according to which version of tiger you're on), so fonts for example will be destroyed. the only halfway safe backup option was SuperDuper and apparently the most recent versoin of chronosync. well done, you. however they're both still subject to the fact that the mac can't support mac aliases -- the underlying inode-alike (can't remember the proper HFS+ term) changes so the alias dies if the underlying file moves. *gnashes teeth*

    by Saltation @ 17/10/2007 1:14 am • Permalink

  • 5

    the whole unable-to-copy-a-busy-file thing gives me the screaming irrits too. oh and re strongspace: i ran across this new competitor last week. the prices seem a fraction of strongspaces: https://www.mediamax.com/Brands/MediaMax/home/signup.aspx

    by Saltation @ 17/10/2007 1:20 am • Permalink

  • 6

    Have you had a look at Foldershare [1]. It seems to be used in the UMPC blog world:- check out jkontherun. Has both OSX and Windows version, no Linux version. I've used myself and it seems to work well. [1] http://www.foldershare.com/info/aboutFoldershare.php?

    by Nicholas Lee @ 17/10/2007 11:25 am • Permalink

  • 7

    It's 17th October, and Bsag has not yet informed us of when she is going to pitch her tent outside the AppleStore so that she can be first in line for Leopard...........................

    by Jonathan Briggs @ 17/10/2007 4:33 pm • Permalink

  • 8

    Heh. Everyone has gone bonkers all of a sudden. I've finally driven people insane with my geeky ramblings. Excellent... [steeples fingers together in an evil way...] Saltation: I've just started using SuperDuper too, so I must be doing something right! I agree that it could all be a lot easier. Re: Media Max - I get 25GB for free with Strongspace too, so there's not much to choose from at my current level. Nicholas Lee: I did look at Foldershare, but decided I'd go for the offline option instead. Also, I can't quite trust anything owned by Microsoft wink Jonathan Briggs: No tent pitching required - I've pre-ordered a copy, which is supposed to ship on the day of release. So I should have it pretty soon after 26th October. Can't wait to get my hands on it!

    by bsag @ 17/10/2007 6:57 pm • Permalink

  • 9

    I know, it's a problem. Only uses RC4 encryption as well. Main bonus is that it uses a peer to peer mechanism, so if two syncing computers are on the same LAN it goes pretty quick. There are a couple other similar non-MS owned products out there, but I'm not sure if there are many OSX options. In the past I've found rsync, subversion or other systems work well only to an extent. They always need to be tune, and often need to be retuned after periods.

    by Nicholas Lee @ 17/10/2007 9:09 pm • Permalink

  • 10

    Jonathan Briggs and bsag: A few of my friends and I will be "pitching a tent" for Leopard. We plan to be the first in line again for this release of Mac OS X. We are very excited to get our hands on it and we have set up our own site dedicated to this event! Check us out live this Friday at the Apple Store: http://www.firstinlineforleopard.com/blog/ See you there!

    by Sharkdrive @ 24/10/2007 9:14 pm • Permalink