Backing up my computer is something I’ve mostly lazy to do pretty much my whole life, with the exception of things like movies and music. This has mostly been due to the fact that I never really found any software that made it really easy to schedule and perform the backups without any user intervention and would also do it when it’s convenient for me. At work we use Acronis to back up the server and Cobian Backup for my computer, both which are very simple to set up and maintain and are quite user friendly. But they also provide things like network backup which is fantastic for an office situation.
I’m a Mac user at home and until Leopard where Apple introduced Time Machine, I never really bothered to look for any backup software because unless Apple has developed the software, a lot of open source software for Mac can have interfaces that are rough around the edges and can be quite buggy. Time Machine on the other hand has a great UI and backs up all your data in a way that is far easier to recover lost data and even presents it to you in a way that you can browse a single folder all the way back just as you would navigate through Finder. It wasn’t until this past weekend however that I decided to actually utilize this feature of Mac.
It had been my understanding that you could use virtually any hard drive you want to backup so long as it was HSF+J formatted.
However there are a few problems with this that I think a lot of users will experience and that is that most people want to backup onto a drive that they can actually utilize with other computers. Such as a networked drive on a NAS, a server or a Windows partition/networked computer that has a lot of free space.
Recently I bought a Netgear WNDR3400v2, which btw is a great router for a great price (dual band 5GHz and 2.4GHz), which supports a NAS as any USB drive that you plug into it. I didn’t want to have to plug in an external drive every time I wanted to backup my computer, especially since Time Machine does it hourly. So I thought it’d be great to utilize the NAS as a backup drive and as a quick swap between computers. But I ran into some problems and here are some helpful steps I’ve taken from a couple of sources that helped me out quite a lot.
- To use a network drive as a backup, it first has to be mounted to your computer. To do this, Open Finder, under SHARED select the network drive you want to back up to and connect to it. It will ask for credentials so put them in as you have set it, likely you can just click on guest.
- Next you’ll have to open Terminal, you can do a spotlight search and it will be the first one.
- In Terminal type:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1and press enter.If you go to Time Machine now, you’ll notice that the drive you want to use is displayed. Don’t try and set it up yet because you’ll run into an error.
- For the next step, you’ll need a bit of information. The name of your computer as it is shared on the network and the Mac Address of your ethernet. To get this information you do this:
- For your computer’s name go to System Preferences and under Sharing, copy your computers name without the .local. I suggest you paste this into a text document so you don’t have to type it out.
- To get the Mac Address of your ethernet type this in
Terminal: ifconfig en0 | grep ether. Where ever you’ve copied your computer’s name to, add an _ and place the Mac Address at the end of it without the :. For Example, mine is
- Next we have to create a sparsebundle. This allows Time Machine to utilize the hard drive as a “Time Capsule”. Sparsebundles are essentially just disk images where data can be moved in and out and allows for backups to be used more efficiently. To do this, there are two ways, the way I found easiest and least time consuming was to use a Terminal command. It can also be done through disk utility and just change the file extension, but Terminal is much quicker.In Terminal type:
hdiutil create -size 100g -fs HFS+J -volname "Time Machine" NAME_XXXXXXXXXXXX.sparsebundleGive it a few seconds.To break that down for you:
-size 100gis the size of the sparsebundle that you want to create in GB. I was using a 250GB so I typed
-size 240g(just to be safe). However much space you want to allow for the backup is what you type there.
The next important part is NAME_XXXXXXXXXXX. Remember I told you to leave your computer name and mac address some where to copy & paste? This is why. You’ll have to type it a couple more times too. For example, mine was
- This next step can be done in two ways that are equally quick. I recommend sticking with Terminal but I’ll say both ways.
- The first, locate the sparsebundle and drag and drop it to your network drive. Then Time Machine is almost ready to use.If you’re on Snow Leopard, you’re done. Just delete the sparsebundle from your hard drive, Terminal command will be step 6.
- Terminal method: Type:
rsync -aE Name_XXXXXXXXXXXX.sparsebundle /Volumes/DRIVE/Where Name_XXXXXXXXXXXX is the same as before, and DRIVE is the name of network drive it is that you’re using.Give it a few seconds.
- All that’s left for Snow Leopard users is this command here:
rm -rf NAME_XXXXXXXXXXXX.sparsebundle
- For Lion however, we have one more step. Download this script and run it in Terminal. To do that, navigate your way to where ever it’s saved and type ./install.sh. It’s a shell script written by msft.guy that is a work around allowing non-timecapsule drives to be used for Time Machine. It requires sudo so you’ll have to type in your password.
And that’s all. Here are links to the various guides I referenced: