How to move your iPhone and iPad backups to an external drive

How to move your iPhone and iPad backups to an external drive

If you sync your iPhone, iPad or iPod touch on your Mac, you know that the first thing iTunes does is back it up (unless you've told it not to). Depending on the size of your device and how much data you have stored on it, this can gobble up dozens of gigabytes of space. Did you know you can move those backups to an external hard drive? You can, and we can walk you through how.

How to save space on your Mac by moving iPhone and iPad backups to an external drive

We've already gone over how to move your iTunes library to an external hard drive to save space, but did you know that iTunes may still be gobbling up space on your hard drive? That's because when you sync an iOS device on your Mac, it backs up the device to a hidden folder inside your home directory Library folder.

Hard drives on Macs are getting smaller as more and more systems use solid state storage, and our iOS devices are getting bigger. With some iPad and iPad mini models available in up to 128 GB of storage, that means iTunes can create some huge backup files.

Unfortunately, iTunes doesn't give us an easy way to move those backup files to an external drive. So we're going to use the Terminal app, found inside the Utilities folder, to do some UNIX command line magic to get it to work.

iTunes creates backup files for your iOS devices inside your home directory Library folder. The first step is to find that folder.

To access the Backup folder:

  1. Open the Finder.
  2. Hold down the Option key.
  3. Click on the Go menu.
  4. Select Library.
  5. Find Application Support and open it.
  6. Find MobileSync and open it.

That MobileSync folder contains a Backup folder, which includes iTunes' backup files for your iOS devices.

Attach your external hard drive. Drag that Backup folder to the external drive. You might want to put it in a clearly marked folder so you remember in the future what it's there for, like "ios_backup" or something similar.

Once you verify that it's been copied, rename but do note delete the original Backups folder (maybe call it old_Backups or something equally descriptive).

A note on aliases and symbolic links

Let me take a moment to explain this next step. We're going to use the Mac's Terminal app to create a symbolic link to trick iTunes into backing up onto your external drive rather than the boot drive.

Have you ever created an alias in the Finder? Aliases have been around since the classic Mac OS days. Aliases point to a file or folder that's kept elsewhere - it can be in another folder on your Mac's hard drive or another drive all together, even a server volume. They're handy ways of connecting to information you need to quickly and easily.

Unfortunately, some applications don't follow aliases properly. An older way of creating those sorts of connections is more reliable for actions like what we want iTunes to do: Symbolic links, or symlinks. They work at a low enough level that applications and operating system functions don't have as hard a time with them as they do aliases.

For the sake of the following example, I've unimaginatively named the external drive External. If yours is named differently, you'll need to change the /Volumes/External pathname in step 4.

To create a symbolic Backups folder link

  1. Open the Finder.
  2. Open the Utilities folder.
  3. Double-click on Terminal.
  4. type: ln -s /Volumes/External/ios_backup/Backup ~/Library/Application\ Support/MobileSync/Backup then press the Return key.
  5. Quit Terminal.

Terminal symlink command

If you kept that MobileSync folder open, you'll see a new file created in it that looks like this:

Backup symlink

The Finder says it's an alias. Don't be fooled. It's actually a symbolic link.

Now run iTunes and let it back up your iOS device. Make sure it's working by checking the creation date of the file you now see in the external drive backup folder. Assuming it's working, it's now safe for you to delete the old_Backups folder and get that precious hard drive space back.

One other thing: If it's unlikely that the external hard drive will be connected all the time, I'd recommend keeping iTunes from backing iOS devices automatically. To do so:

  1. Open iTunes.
  2. Click on the iTunes menu and select Preferences.... (Alternately, hold down the Command key and type ,.)
  3. Click the Devices tab.
  4. Check Prevent iPods, iPhones and iPads from syncing automatically.
  5. Click OK.

Otherwise, when you try to back up your iPhone to a hard drive that's not connected, you're likely to see an error message that looks like this:

Could not backup

Hopefully you haven't run into any snags, but if you have any questions, let me know.

Peter Cohen

Managing Editor of iMore, Mac and gaming specialist and all-around technologist. Follow him on Twitter @flargh

More Posts

 

20
loading...
0
loading...
54
loading...
0
loading...

← Previously

Big Nerd Ranch hits the road this fall to teach iOS 8 and Swift

Next up →

Review 32: The TV Show

Reader comments

How to move your iPhone and iPad backups to an external drive

10 Comments

Hi Peter. I've tried several times and the terminal keeps saying that there is not such file or directory when I hit enter.
I've checked the spelling and of course I changed the name of the external drive.
Any suggestions?

Do you have any spaces in there, and are you observing capitalizations properly? Spaces need to be parsed using a leading backslash so the file system will interpret the character literally: try a leading backslash if there is a space in your folder or volume name. For example: "My Folder" would be "My\ Folder" in the pathname.

Additionally, you can drag and drop the files rather than typing the the path and name. Follow Peter's instructions, but drag the renamed backup in the appropriate spot and remove the "old_" from the name it inputted for you.

Thank you Peter. There was a space in the name of the external drive and the backslash solved the issue.

If your PC is having problems communicating back and forth with your iPhone

and you want to transfer a back up stored on the hard drive

to an external

and then to a different PC

to attempt to restore from back up,

how would that work?

That's a much simpler solution. Just copy your iPhoto library in your pictures folder to a spot in your external drive. Then delete your iPhoto library from your Macintosh HD and open iPhoto. iPhoto will then prompt you what library you would like to open since the old one is gone and you select the one whose path shows the external drive.
Alternatively, you can change libraries in the file menu by selecting "Switch Libraries..."