Subscribe by email
Follow us on Twitter Subscribe to our RSS Feed

Two Macs and Keeping Things Together

by Aaron Print This Post
Share this on Facebook Share this on Digg Share this on Twitter Share this on StumbleUpon Comments 7 Comments »
If you enjoy this article and other information provided here at Maciverse.com, be sure to keep up with the latest Mac hints, tips, and more by following us on twitter @Maciverse or by subscribing to our feed.

I have the pleasure of working with two macs. One is a Mac Pro and the other is a first generation MacBook Pro for working remotely. This has been especially helpful given the rise in fuel costs. What has been challenging is keeping the data on the two machines in sync. There are several ways to do this and in this article I will discuss three ways.

1. Time Machine Synchronization

Time Machine Synchronization

Apple created Time Machine so you would never lose a file, which makes it a good candidate to keep files in sync. In this case, You use your external drive with Time Machine to keep backups of each machine. When you switch machines you would then restore from the Time Machine backup of the other machine. There are two ways to access Time Machine backups of different machines (on the same drive). The first is to hold down the option key after you have clicked on the Time Machine menu icon

Time Machine Menu from the Menu Bar

The other way is to right click the Time Machine icon in the doc:

Access Time Maching from the Doc

Clicking on either option will bring up a dialog where you can choose which Time Machine Backup to use. After that point, Time Machine behaves just as before and you can restore any file or folders as you normally would.

In my case, all of my important files are in my Documents folder and each morning when I changed machines, I would restore the Documents folder from the other machine’s Time Machine backup. Time Machine is effective, but not the brightest program when it comes to restoring files. Time Machine copies over everything, even files that that are identical on the machine and the backup. My Documents folder was just over 4 gigabytes in size and this took Time Machine about 10 minutes to restore on my macbook pro using a USB cable. The Mac Pro was faster as it has firewire 800.

Because Time Machine copies over everything from the backup to the new machine, that meant that every file in my Documents Folder had changed and Time Machine would then backup the entire Documents folder again. Backuping up the same data over and over each day quickly filled up my external drive.

Yet I found that keeping just the Documents folder in sync wasn’t quite enough. My iTunes folder was now scattered across two Macs along with photos and applications. Adding those folders to Time Machine would cause my drive to fill up even faster.

But this path had one final flaw which was human error. Time Machine gives you the sense of security that everything has been backed up. But that’s only true each time Time Machine successfully runs. So it does you no good to quit 1 minute before a scheduled backup. This leaves Time Machine without that last hour’s worth of work. So the flaw was forgetting to run Time Machine’s backup before quitting for the day which unfortunately is all too easy to do.

Bottom line: It does work but be sure to have lots of space and never forget to backup

2. Network Based Synchronization

Synchronizing over the network

While there are quite of few online places to keep files in sync, including drop.io, it’s not allowed at my company. In talking with one of our IT guys, he mentioned that I could use something called rsync. I learned that rsync is an app that comes with OS X, but you have to run it from the Terminal (i.e. command line). Some of us use Macs to get away from all that “Unix-y” stuff. On the other hand, rsync can copy only the files that have changed and it can do it over the net through a secure encrypted connection. rsync can also sync up local folders too but that’s not as interesting.

In order to get this to work, you first have to enable remote login from the Sharing section of system preferences.

Enable remote login

The next part is determining whether or not you can connect to your Mac from your remote location. This might include talking to your IT staff, wrangling with your ISP and adjusting settings on your home router/DSL or cable modem. Those issues are beyond the scope of this article. Here’s an example of what using rsync looks like:

Using rsync from the Terminal

As you can see, there’s a lot of options for rsync, and this method by far is the most technical and detail oriented. You can easily sync up the wrong folder, or the right folder to the wrong location on the remote machine. However, when it is done right, rsync works fast and secure.

As with Time Machine above, keeping my Documents Folder in sync worked fairly well. But my iTunes library is even larger than my Documents folder and syncing changes would take too long especially after downloading a movie. Also, if the remote machine unexpectedly becomes unavailable before you are able to sync up the files you get to make an unplanned trip to the office.

Bottom line: It does work as long as you don’t mind getting through all the technical details and the net. Head on over to the forum if you want to know more.

3. Shared Home Folder

Sharing your Home Folder

Back when Tiger first came out, there was talk that Apple would let people store their home folders on their ipods. That never quite happened. Again, with Leopard, there was talk that Apple would bring that back. While I don’t know about the iPod, you can move your Home folder to a remote drive. The idea of course, is to keep the home folder in sync between two machines because both machines use the same home folder. This eliminates the human error portion of remembering to backup or restore. Again, this has some technical steps, but the end result so far seems to be much better.

First, make sure your external drive is formatted properly. Apple uses the HFS+ filesystem, most external drives are formatted for use with PC’s. You can use the Disk Utility App to reformat your drive or a part of it to Apple’s filesystem.

Once you have the drive formatted and connected to your mac, then you’ll want to copy your home folder to it. To do that, you will need to use the Terminal and a command called ditto. Open Terminal and type: sudo ditto -rsrc “/Users/username” “/Volumes/new_home_folder_path”

where username is your account’s short name and new_home_folder_path is where you want your new home folder to be. For example, the caption below shows me copying my home folder to /Volumes/Users/aaron.

You will be prompted for your password (you have to do this logged in an administrator account) and the copying will commence. ditto will create the new folder if it doesn’t exist which is nice. This is the most techie part of the process.

Next you need to open System Preferences and click on Accounts. Then click the padlock at the bottom left and enter your password whem prompted. Now right-click on your account name and a menu “Advanced Options…” should appear.

Advanced Options

Clicking on Advanced Options will take you to a screen where you can change your home folder’s location. Do note the giant warning at the top of the window. Changing these settings can really mess things up. As always, proceed with caution.

Changing your home folder location

You can click the “Choose” and select the folder you want for your Home folder or if you’re really brave, you can just type it. Once you have chosen your new home folder’s location, log out and restart. If everything went well, logging in  will look like before. If everything didn’t go well, you’ll get an error. I set up a second administrator account so I could change things back in case something went horribly wrong. Luckily, it didn’t. Repeat the process for each machine.

Now I don’t have to synchronize anything anymore as it is all stored in one portable location. There have been a few quirks. Time Machine doesn’t like it and it causes backups to fail. So you should have some backup plan in mind when the external drive fails (and it will). Also, some apps behaved as if they were freshly installed and prompted me for their license keys. But all in all, it has worked out better than the other two options.

Bottom line: Most convenient option but also the easiest to completely mess up your Mac

Related posts:

  1. iPhoto Backup
  2. Online Backup For your Mac
  3. How to back up your iPhone contacts
  4. Data Recovery on Macintosh
  5. Google Chrome Released for Macs (Developer Build)

Comments

  1. Hi
    I am thinking of getting a Macbook air for work and was wondering how I would sync my iMac with it. I came across your information and have a question.

    With option three, do you need to be connected to your external hard drive when you turn on and log in to your laptop to be able to use your mac book? if your home folder is not on your macbook and you try to login/turn it on (say at work when your not on your home network or connected to your external harddrive) will it allow you use your macbook?
    surely if it cant connect to your home folder it cant work?

    Home you can help

  2. Hi Stuart,

    Depending on how your Mac is configured, you may need to have your drive connected before you power on your Mac (i.e. automatic login). You absolutely need to have your drive connected before you log in with the account on the external drive, otherwise you will get an error at the login prompt. This is why it’s a good idea to create a secondary login. Using an external drive just one of the many options available. It really depends on if you want your entire home folder shared between Macs or if there are just parts you want to share.


    Aaron

  3. Hi, Aaron

    After reading your post, I’m still not content with the aforementioned solutions. You see, when TimeMachine came out I wasn’t sure what to expect, but when I got to know what it actually does, I was disappointed. I don’t know how many people out there are so clueless that they frequently delete files they then have to recover, but that’s not at all what I would think most people would want. Don’t get me wrong, TimeMachine would have been a great piece of software had it allowed me to keep 2+ macs in sync.

    The fact that it creates 2 separate backup libraries renders it useless to me. I have an iMac and I’m planning on getting a MacBook. I’m also planning on getting a 2TB external hdd with FW800 in order to hook up to my iMac. Alternatively, a 2Tb TimeCapsule would suffice. However, what I need to do is to have the same set of files syncronized across these 3 locations. My iMac has a 1TB hdd and my MacBook would have only 250GB. Hence, I wouldn’t be able to keep them fully in sync. That’s where TimeCapsule or external hdd come into play. I would have one single library syncing file changes form my iMac and my MacBook simultaneously. For that, I would use something like SuperDuper or ChronoSync.

    I think by elaborating on the set-up I just answered my own question, but my point is that none of the proposed solutions, including TimeMachine, would allow me to synchronize 2 macs with one single master Home folder. I guess, I’ll just wait until a 2TB TimeCapsule comes out, hopefully, with a ratified 802.11n chipset inside.
    -
    Andrei

  4. this is a much simpler solution:

    http://www.econtechnologies.com/pages/cs/chrono_overview.html#

  5. I own the Maxtor OneTouch 4 Plus 500 GB external hard drive; http://www.practicallynetworked.com/review.asp?pid=700 and I used to have it hooked up to my XP Pro PC, but since I have abandoned Windows and bought a new iMac I’m trying to configure my external drive to this computer. I re-formated the drive to Mac OS Extended, but I have not installed any backup software yet, and as you described, “I don’t like to ask the drive to spin up on the hour, as good evidence suggests excessive spinning up and spinning down lessens the life of a hard drive.” So, how could my external drive be spinning up every 12 minutes with nothing on the drive to make it spin? No installed backup software yet, no files on the Maxtor at all?

    And with Time Machine every time that I change anything in a file like small incremental changes of 1 word in a file Time Machine creates a new folder “with everything” on my external drive where I have 15 new folders each day? I still have the 1 updated or “Latest” folder which is the first folder in that folder, but I would rather have just this 1 folder instead of 15 additional per day. Is there a setting that I could do to make that happen? Also am I able to go further out then 86,400 seconds in between my backups in that Time Machine change that you described? Can I push it to 2 or 3 days out? I’ve already had to completely erase my external drive and start off fresh again which is where I am at now. And I was going to just use the Maxtor Manager but for some reason the Sync feature isn’t lit up and editable, so I can’t sync my files to the Maxtor for my incremental changes on the iMac even though I was able to do so with my old PC? I’ve included their PDF booklet if you know anything about this product.

    Any help and advice would be greatly appreciated, thanks a bunch!

  6. Billy,

    I don’t have an answer as to why the drive would spin up every 12 minutes. I can only speculate that it has something to do with how OS X talks to the maxtor drive. You may be able to find better drivers on maxtor’s support site that are more efficient.

    As for Time Machine, it uses some special tricks with the OS X filesystem called “hard links” to make it appear that it has copied everything when it has only copied the files that have changed. A hard link the connection between a filename and the data that is in the file (kind of like a mailing address connects a person to a location). When you create a new file, the file name is essentially a hard link that points to the file’s data. Most of the time, files can only have one hard link. Time Machine uses hard links to point to the data of each backed up file, so while there may be 15 folders, any unchanged files are just hard links back to the same file data. When a file is changed, the changed file is copied over and future backups use hard links to connect to the latest copy and so no. Otherwise, Time Machine Backups will fill drives even faster than they do.

    I’m not sure if there is a maximum limit on the number of seconds between Time Machine backups. My best advice there is to try it and see. However, if you want to do daily backups, there are some alternatives you can try. I happen to like Carbon Copy Cloner http://www.bombich.com/software/ccc.html and would recommend checking it out if Time Machine is too restrictive on the interval between backups. Also, there are few things that CCC can do that TIme Machine can’t. As always, your mileage may vary and best of luck.


    Aaron

  7. [...] for the business environment. Mail, iCal, and Address Book will all now come with the capability to sync with your Microsoft Exchange servers and sync your latest business emails, [...]