I had a hard time finding information on how to do this a few months ago and got it working after testing and asking a bunch of questions... Hopefully this will help anyone that wants to have a TimeMachine backup on a networked drive. I had this saved in a notepad file so I don't remember all the people that helped me sadly. I have this working on a file server running Windows 7 (Networked drive is SMB) and my Macbook Pro running 10.8.2.
One thing to note, do NOT use any spaces when naming anything. It caused problems for me
Next, you'll want to resize the sparsebundle to w/e your harddrive size is since when making the sparsebundle it won't allow you to make it bigger than your home drive for some reason.
Now to tell Time Machine to use the Sparsebundle.
After this, do a test backup to ensure that the backup works. Inside the sparsebundle, TimeMachine should've created the folder, "Backups.backupdb"
If you want to automatically mount the TimeMachine networked drive when you turn on your Mac, you can do this.
Thanks a lot to Weasleboy for providing the solution.
Hopefully this will help out a few of you that want a TimeMachine backed up to a networked drive. Any questions or concerns, go ahead and ask!
One thing to note, do NOT use any spaces when naming anything. It caused problems for me
1. Open Disk Utility
2. Click on New Image
3. The size doesn't matter for now, but save it on your home drive.
Ensure that the Format is Mac OS X Extended (Journaled)
(in other words, this will be HFS+, the Macs native filesystem)
and the Image Format is sparse bundle disk image.
4. You can set Encryption if you want but not necessary.
On the other hand, encrypting the disk image is a good idea since
youre going to put it on a network that can potentially be accessed
by others.
Next, you'll want to resize the sparsebundle to w/e your harddrive size is since when making the sparsebundle it won't allow you to make it bigger than your home drive for some reason.
1. Open Terminal
2. Find the sparsebundle and unmount it
3. In terminal write this
hdiutil resize -size *1000g /users/*user*/Desktop/TimeMachine.sparsebundle
*1000g being the size in GB - So 100g would be 100gb, 1000g being 1Tb
*user* being your username and the rest were you saved your sparsebundle. In my case, I saved it on the desktop as TimeMachine.sparsebundle
Now you can save the sparsebundle on w/e networked drive you want to use.
Now to tell Time Machine to use the Sparsebundle.
1. Open Finder
2. Navigate to the shared folder which you put the new disk image.
3. Double-click on the disk image to mount it. You should see the new
volume in the Finders sidebar
4. Open Terminal and enter the following command :
sudo tmutil setdestination /Volumes/{mounted-disk-image}
Be sure to replace {mounted-disk-image} with the appropriate name for
your new disk image. You will be prompted for your password, this is
normal.
After this, do a test backup to ensure that the backup works. Inside the sparsebundle, TimeMachine should've created the folder, "Backups.backupdb"
If you want to automatically mount the TimeMachine networked drive when you turn on your Mac, you can do this.
Thanks a lot to Weasleboy for providing the solution.
Open Applescript editor from /Applications/Utilities and copy paste this in there :
Code:try mount volume "[B]smb://192.168.1.10/Timemachine[/B]" end try do shell script "hdiutil attach -mountpoint smb://192.168.1.10/Timemachine Volumes/TimeMachine/TimeMachine.sparsebundle"
In my case,
smb://192.168.1.10/Timemachine is the networked drive location
Volumes/TimeMachine/TimeMachine.sparsebundle is where the sparsebundle was located
After that, press run and see if it works. If it does, press File>Export and save it as an Application. Now open Login Items (System Preferences>Users & Groups > Login Items) and drag the saved script there.
Restart your Mac and it should automatically mount!
https://forums.macrumors.com/threads/1494738/
Hopefully this will help out a few of you that want a TimeMachine backed up to a networked drive. Any questions or concerns, go ahead and ask!