Make Time Machine remotely back up to your Time Capsule

by Matt on November 30, 2008

Share with Others:
Email This Post Email This Post
Print This Post Print This Post

Post to Twitter Tweet This

KB wrote in to ask whether it is possible to have her Mac Book’s Time Machine automatically mount her Time Capsule (which is at her home) while she’s traveling and back up her Mac. The answer is yes, but it’s only easy to do if you have MobileMe.

For those of you without a MobileMe account, this solution won’t work (which is another reason to consider getting this great service). For those of you with a MobileMe account, let’s proceed. I am going to assume that you have only a single-user MobileMe account. If you have a family account, then without any more help, this hint will work if you are also the administrator of the Time Capsule. In addition, I am assuming you have already set up your Mac to back up to your Time Capsule. This solution is for adding a remote backup function, not setting up your Mac to use Time Capsule.

Basics

You need a few things to start: Your MobileMe user name and password, an internet connection, and administrator access to your Time Capsule. If you’re the only person using all of these, you should be all set.

The first thing we need to do is make sure you have set up your MobileMe account on your Mac. If you already have done this and turned on Back To My Mac, skip down to “Getting the Password” For the rest of us, you can find the MobileMe preferences in your System Preferences (access those from the Dock, your Applications folder, or the Apple Menu). Note: If you’re still running a plain-vanilla version of 10.5 Leopard and have never used Software Update, your Mac may still list the MobileMe preference as .Mac. I highly recommend you run all of your software updates before proceeding.

Here’s what we’re looking for:

Once you click on the MobileMe preference, your account page will come up. If you have not entered your MobileMe user name and password, it will provide fields for you to do so. Once you enter this information and it is verified you should get a screen similar to this:

The key here is that the screen says you are signed into MobileMe. Once that’s the case, click on “Back to My Mac.” Once on this screen, you need to click on the “Start” button to turn on the service. Note: If you don’t want to use the Back to My Mac service, that’s ok. We only need the computer to connect to the MobileMe servers once to generate a password. Once Back To My Mac is running, you can feel free to shut it off.

Great! Now you can quit your System Preferences.

Getting the Password

Now that we’ve set up our MobileMe account and Back To My Mac, we need to get our Back To My Mac password. To do so, go to your Applications Folder. From there, open your Utilities folder. Finally, in the Utilities folder, open the program called “Keychain Access.”

In the upper left pane, click on the “System” keychain. Then, look for the key that is the kind called “Back to My Mac key.” You’ll probably only have one of these, and it take the form of username.members.mac.com or username.members.me.com, where username = your MobileMe user name. It looks like this:

Now, double click on that key, and a new window will open. At the bottom, click on the checkbox next to “Show password.” A new administrator verification window will pop up, and you need to enter your computer’s admin password in order to view your Back to Your Mac password. Once done, you should see something like this:

Finally, highlight the password and copy it into your clipboard. We will need this password in just a minute. (Alternately, you can copy and paste it into a sticky if you think you’re going to need to use the clipboard before we finish this set up.) Take note of whether your account says username.members.mac.com or username.members.me.com. It does matter, so write it down. If you’ve only added your account since .Mac switched to MobileMe, it’ll say me.com. If you’re an old .Mac user, it’ll probably say .mac.com. Now you can quit Keychain Access. (If the program asks you if you want to save changes, say no.)

Time Capsule Setup

The last big job we have is to make some changes to the Time Capsule setup. You’ll need to open your AirPort Utility, which is in the same folder as Keychain Access. Once you open the AirPort Utility, you should see your Time Capsule listed in the window, like this:

Obviously, my Time Capsule is called Satellite. Double click on your Time Capsule. You may then have to enter your Time Capsule’s password in order to configure your settings. Once that window opens, you’ll be on the Summary tab. Click on the “Time Capsule” tab, then click the Edit button, as shown here:

Once you click the Edit button, you should get a window like this:

Ok! This is where the meat of the project comes in:

  • You will not have the “Use dynamic global hostname” checkbox checked, but we want to do so now.
  • Make sure you have something filled in for “Local Hostname.” Anything is fine.
  • Now, back on the “Hostname” line, we’re going to fill it in with a long string. The first word will be your local hostname. Since mine is Satellite, my first word is satellite. Then I put a period, followed by my MobileMe user name (in my photo, I just put the word “username.” You’ll replace it.). After that, you’ll put another period, followed by members.mac.com or members.me.com, depending on what your keychain indicated your account used.
  • On the “User” line, this is again going to be your MobileMe user name, followed by a period, followed by members.mac.com or members.me.com (whichever is correct for your account).
  • On the “Password” line, you DO NOT put your MobileMe password. Instead, you paste the password we copied from the System Keychain.
  • Now, click Done, then click the Update button to have your Time Capsule save the settings and restart.

Are we done yet?

Maybe. :-) Theoretically, we’re done! You should be able to leave your home, go to a coffee shop or anywhere else with a wireless network, and within a few minutes of getting online, your Mac should detect your Time Capsule. I have found that, in some cases, it doesn’t quite work perfectly until we try a couple of steps at least one time.

If you go to another wireless network and then check your Time Machine system preference, look to see whether your Time Capsule is recognized. If it is, then you should actually have a date and time listed next to the “Next Backup” line. If you do not, try this:

  • Simply turn off Time Machine and turn it back on. Wait a minute, and see if this does not correct the problem.
  • If it still does not, go to the finder, then click on the “Go” menu, followed by “Connect to Server.” For the address, type in that entire host name string. On my computer it was satellite.username.members.mac.com (where username was my username). Then click Connect. If you did not set up your Time Capsule with a password to connect, it should connect on its own. If you set up a simple password only for the device (rather than usernames and passwords), then when the username/password box pops up, your username will be “user” and your password will be whatever you set up on your Time Capsule. Finally, if you chose to use specific usernames and passwords for Time Capsule, enter your username and password. Once your Time Capsule appears under your Devices tab on your Finder window (or Desktop), you can eject the Time Capsule. NOW, go back to your Time Machine preference, turn Time Machine off and then back on and wait a minute to see if the problem has gone away.

These two steps above should only be needed in rare circumstances. For most people, everything should work without the extra steps. A few more notes:

  • If you’re like me and are stuck with a crummy cable connection at home or remotely, your upload speed is probably not very good, and this will significantly impact how long your Time Machine backups take. In my experience, the “Preparing” step in the Time Machine takes 20-30 minutes remotely before you even get an indicator of how much data needs to be backed up. This isn’t a bug; this is simply what happens when you’re not on a local connection.
  • Since backups take much longer, you might want to consider downloading a program that lets you schedule your backups rather than using the standard every-hour-when-my-machine-is-plugged-in setting. I recommend the wonderful and free Time Machine Editor.

Update: If, after trying all the steps below, your Time Capsule still does not appear in the Time Machine list of disks, open Terminal and type this command, press return, then reopen  System Preferences to look for the disk:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes -bool yes

    Did this work for you? Have a suggestion to improve this answer? Post your thoughts in the comments section!

    Related Posts

    { 4 trackbacks }

    Greg Knackstedt
    January 5, 2009 at 5:02 pm
    Peter George Avalos
    March 21, 2009 at 8:38 pm
    Yohannes Wijaya
    June 4, 2009 at 1:15 am
    TwitLinksRSS
    June 4, 2009 at 2:05 am

    { 51 comments… read them below or add one }

    1 Jörgen Lilja December 10, 2008 at 2:51 pm

    I can’t make it work, I get an error code -36 that says it’s not possible to read/write xxxxxxxxxx.xxxxxxxxx.members.mac.com?

    Don´t I have to turn file sharing on or open up som ports?

    2 Matt December 10, 2008 at 3:21 pm

    You do not need to turn on file sharing. You may need to open up ports, but only if the Time Capsule is not your router AND your actual router is not an AirPort Extreme/AirPort Express. If that’s the case, you need to set your Time Capsule as the DMZ (as Time Capsule does not support UPnP, so all ports would need to get forwarded there).

    Your error message makes me suspect that your Time Capsule requires authentication to connect to it (either a username/password or disk password). If that’s the case, you might temporarily disable the authentication requirement and try again.

    3 Jörgen Lilja December 10, 2008 at 3:29 pm

    Hm, strange in deed. My TC is my router. I guess i disable the authentication requirements through leaving the user name and password field in the TC dynamic global hostname empty?

    4 Jörgen Lilja December 10, 2008 at 3:32 pm

    I tried to connect to it through my network just typing in the IP-adress, and then it asked me for the TC username/password. But when i switched networks and used the mac.com adress, I got the error message….

    And thanks for the quick reply!

    5 Matt December 10, 2008 at 3:58 pm

    Jörgen,

    1. In case we did not communicate well earlier, it should not matter whether you have file sharing turned on in the “File Sharing” tab of the “Disks” preference when you configure your Time Capsule in the AirPort Utility. However, if you DO have file sharing turned on, you might try changing the setting under “Secure Shared Disks:.” Personally, I use “With Time Capsule password.” One setting might work better for you; if you have file sharing turned off, try turning it on (and vice versa).

    You MUST configure the dynamic global hostname under the Time Capsule name settings as I described. If you leave those fields empty, the MobileMe server will have no way to find your Time Capsule.

    6 Jörgen Lilja December 10, 2008 at 4:14 pm

    Ok, I tried another way to do it and actually made it. And it was way easier. I don´t know if it’s as secure as your way. This was how I did it:

    Launch airport Utility, select manual button, select Disks then File Sharing. Check “enable file sharing” and “share disks over ethernet wan ports.”

    I then connected over the TCs IP-adress, logged in with my TC username and password. Then I went in to the Time Machine setup, change harddrive and choose the same TC i had before, but now it had the IP-adress in (). It just started where I left off, so no probs.

    Best regards!

    7 Matt December 10, 2008 at 4:22 pm

    Jörgen,

    Yes! This is a very good way of doing things, and I’m glad you got it to work. Here’s the only problem: that method will only work as long as your public IP address does not change. If you’re on a dynamic router (cable modem, DSL, etc.), eventually it will change. Then you’ll need to know the new IP address. You might want to consider having your Mac use dynDNS services or something similar to always have an address that points to your actual IP address.

    8 John December 17, 2008 at 6:57 am

    After a little futzing around I got this to work! I had to go the “Connect To Server” route, and then re-point Time Machine to my drive, but it worked! For a few minutes anyway. After it spent several minutes preparing (as expected), my drive un-mounted in finder and all attempts to re-connect to the server failed. To be fair, their COULD have been a power / connection outage at my house, but I wasn’t there to see it. When I got home I didn’t see anything that would lead me to believe that this was the case.

    Any ideas?

    9 Larry December 20, 2008 at 6:06 am

    Matt, Your solution works great. I ended up using a static IP address for accessing my time capsule. I am also trying to access a ethernet based network storage device that hangs of the time capsule. I try the following and get an error message that says “a volume failed to mount – error code 6602″

    afp://xx.xx.xxx.xxx/yy.y.y.yyyy

    The x’s represent my Time Capsule’s static IP and the y’s represent my ethernet based network storage device.

    Can you help please?

    10 Larry December 20, 2008 at 2:34 pm

    Sorry, type above:

    The correct syntax is afp://xx.xx.xxx.xxx:yy.y.y.yyyy

    This address does not give me an error code, however, it ONLY takes me to the time capsule router versus going to the ethernet storage device (yy.y.y.yyyy)

    Any suggestions?

    11 Matt December 20, 2008 at 3:26 pm

    Larry,

    I don’t know your exact setup, so I’m just going with my best guess here, but I don’t see how your syntax would work. It’s my understanding that the digits to the left of a colon in an AFP address will always be the IP address; to the right of the colon will be the port number. Thus, you can’t specify the ethernet disk that way.

    I’m assuming your NAS is your actual Time Machine device (as opposed to an overflow disk for the Time Capsule). If that’s the case, you’ll want to give your NAS its own static IP, then choose a port number to forward to the NAS. Since you are manually typing in the IP address you want to access, you should be able to pick any port number. Then, you’d use AirPort Setup to modify your Time Capsule settings to forward incoming access on that port number to the NAS’s static IP address. You’ll use this kind of address instead: afp://xx.x.x.xxx:yyyy (where yyyy is the port number that points to your NAS, not the NAS’s internal IP address).

    12 Matt December 20, 2008 at 3:29 pm

    John,

    As to your issue, you’d want to open up your Console and take a look at the Time Machine messages to see what is going on. Basically, if you click on “All Messages” and do a search for “backupd” you’ll get backupd’s console output (backupd is Time Machine’s service). See if there are any error messages there and let me know if you can’t figure it out.

    If you’ve restarted your machine since you last tried it, those messages might be gone. You’ll need to try using it again. I’ve noticed that I had to re-select my Time Machine disk in the System Preferences after I updated to 10.5.6, so you might try telling Time Machine to use “No disk” and then choose your Time Capsule again.

    13 Larry December 20, 2008 at 11:07 pm

    Hi Matt,

    I have a ethernet storage device which is connected to the time capsule. It is a NAS200 and Linksys told me the port #. I tried:

    afp://xx.x.x.xxx:[port of external drive]/[vol] as [user name] with password [password]

    I get an error -36

    14 Matt December 22, 2008 at 5:27 pm

    Larry,

    Can you open your Console log and do a search for “backupd” using the “All Messages” log? Let’s look at the last few lines to see exactly what the error message is.

    15 Larry December 27, 2008 at 12:41 pm

    Hi Matt,

    Appreciate your continued willingness to help me out here. I was successful dragging and dropping the following into my Time Capsule Folder:

    ftp://username@ While this does permit access to my ethernet storage device, I can only drag and drop the files onto my desktop, however, after making my changes the files cannot be placed back on the my ethernet storage device until I get local access.

    I called Linksys and they tell me that their drive does support the SMB protocol.

    I tried connecting using SMB:// and it takes me back into the time capsule and not the external drive. I am getting closer. I just would like to have read/write access to my ethernet drive as well.

    Thoughts?

    16 Larry December 28, 2008 at 12:52 pm

    Getting Closer….

    Matt,

    I am now able to access the Ethernet storage device through time capsule, however, only when I am on my home network. In other words, I can see the storage device via the “Network icon” in time capsule along with the other devices on my network.

    When I go to an internet cafe, for some reason, the network icon does not show my ethernet storage device. This leads me to believe either the storage device is not visible due a setting on the device, or time capsule is not set-up correctly for WAN access for devices hanging off the Time Capsule.

    Any other ideas Matt?

    17 Simon December 30, 2008 at 7:45 am

    Hi Matt,

    Thanks for the great tutorial. I am trying to setup an Airport with a connected USB drive using the same method. I can find all the settings you mention (most of them are in the Base Station tab of the airport instead of the time capsule tab) and have followed the instructions exactly, however, I cant seem to login remotely.

    I managed to get time machine to find the drive over my local network. I then did a share screen to my Bro’s Imac at a different location (using my mobileme account back to my mac) and i can see my mac i just cant see the airport? Does my Bro’s mac need to connect to the Airport locally before it will connect remotely?

    I have a Sky netgear router/adsl modem which is connected to my airport as i dont have an indipendent adsl modem. Do i need to setup port forwarding on this router?

    Any ideas would be greatly appreciated

    18 Larry December 31, 2008 at 3:48 am

    Hi Matt,

    It appears the only way to access computer or hard drives using the Time Capsule is via VPN? Apparently since I have file sharing turned on at the Time Capsule level when I try to port map 548 and 139 I get a conflict since these are the ports I would need for the ethernet storage device.

    See my posting in the Apple Discussion Group below:

    http://discussions.apple.com/thread.jspa?messageID=8716831#8716831

    Any other ideas?

    19 Another Matt December 31, 2008 at 1:14 pm

    I am having trouble getting this to work., and I believe I’ve followed your instructions perfectly. I’ve tried using the “Go” menu to navigate to xxxx.xxxx.members.mac.com while on a remote networl, and get a “Connection failed” error message. However, I can navigate to xxxx.xxxx.members.mac.com when I’m on my home network.

    I am using a family me.com account, and I am not the primary account holder. Does this matter?

    20 Matt January 1, 2009 at 10:52 pm

    Larry,

    VPN is not what you want here. You’re right in your assessment of the port assignments, since any device on your network is going to want to use port 548 for AFP. There is a way around this, however. With the Airport Utility, you can establish port maps where the private port (meaning the port *inside* your network) is different than the public port (the port *outside* your network).

    This means you can specify that you want the private port 548 to be mapped to the public port (for example) 5480 on IP address 10.0.1.9 (or whatever). When you want to connect to that address from outside your network, you’d add :5480 (colon 5480) to the end of the IP address (e.g. larry.dyndns.org:5480).

    This kind of setup will allow you to use as many AFP servers as you’d like, provided you map each one to a separate, unused public port. Here’s the rub: I’m pretty sure you will not have any luck with Time Machine unless your Time Machine disk has the *public* port of 548. That means you’d need to remap your other disks, not the Time Machine disk (or Time Capsule). Of course, feel free to experiment and see if that will work.

    Leave a Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Previous post:

    Next post: