Free Up Hard Drive Space by Changing the Location of iTunes Backups
So this morning I came into work to an almost full hard drive. When I went to clear up some space, I realized that my iPad and iPhone backups were eating through approximately 20% of my fast and, relatively, cheap 80GB drive! I then began a quest to deal with this situation once and for all.On my desktop, I have an 80GB Western Digital Velociraptor for my boot drive that Windows is installed on. I also have a second 500GB drive where I keep all of my data. This boot drive is VERY FAST, but it also has a much higher cost per GB than a slower drive does. Its a basic engineering problem; fast, cheap or spacious, choose any two. Since this problem has popped up a couple of times in the past I decided to develop a solution for placing the backups on my second drive where they’ll have more room.
My first couple of google searches were for some setting or registry key that iTunes might use to tell it where to place these backups, but such a thing apparently doesn’t exist. By default on Windows 7, my iTunes backups were stored to “C:\Users\onelson\AppData\Roaming\Apple Computer\MobileSync\Backup”. Since there is apparently no way of changing this location in iTunes, we have to ask the operating system to do iTunes dirty work for us.
Fortunately, Windows has a way of doing this using a concept known as symbolic links (symlinks, or in M$ speak, NTFS Junctions). A symbolic link is similar to shortcut, but lower level. (Update: Based on some great comments from John and Jake, you can skip the first couple of steps and use the built in command mklink to create the symbolic links)
- So to begin, you need to download this free tool to create NTFS Junctions. (This is a tool provided by a Microsft engineer on Microsoft’s website ironically enough)
- When you unzip that file, extract the junction.exe into the C:\Windows folder so that you can run in from anywhere.
- Next up, you need to move all of your existing backup files to their new location. This could be secondary hard drive, or another partition, or even an external hard drive. Before we move the files, make sure iTunes is closed.
- To move the files, open up a “My Computer” Window and type this into the address bar: “C:\Users\%username%\AppData\Roaming\Apple Computer\MobileSync” (without the quote of course) and press enter. This should take you into your iTunes MobileSync Folder where the Backup folder is located.
- You need to right click on the Backup folder and select “Cut”.
- Now navigate to where you’d like your backups to be located. For me, I wanted them on the D: drive in a folder I created called “iTunes Backup”. Paste the Backup folder to this location.
- Next you need to open a command prompt. To do this, click on the Start button and type in “cmd” (again, no quotes) and then press enter. A black window should open up that looks like this.
- Now for the easy part, creating the junction. All you need to do to create the junction is type in the word
“mklink /J” then the path to where Windows stores the files, then the path to where you decided to place your backup. So for me, I typed in: mklink /J “C:\Users\onelson\AppData\Roaming\Apple Computer\MobileSync\Backup” “D:\iTunes Backup\Backup” (Note that there are quotes around both paths since both paths contain spaces, these quotes are required). - If everything worked correctly, the junction command should indicate that it created the junction
This is certainly an advanced technique, and you could really mess up your iTunes data if you do this wrong. If you are unsure of any of the steps above, please ask for help from someone better versed in Windows. If you find any ways that I might improve this guide to make it easier to understand.
0 comments:
Post a Comment