Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 20, 2012, 03:14 PM   #1
Namtaro
macrumors regular
 
Join Date: Dec 2011
[GUIDE] Time Machine and Networked Drive

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

Quote:
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 Mac’s 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
you’re 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.

Quote:
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.

Quote:
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 Finder’s 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.

Quote:
Open Applescript editor from /Applications/Utilities and copy paste this in there :

Code:
try
	mount volume "smb://192.168.1.10/Timemachine"
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!

http://forums.macrumors.com/showthread.php?t=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!
__________________
Late 2011 15" Macbook Pro - 2.4GHz i7 | 256GB Samsung 8 SSD | 16GB Memory | AMD Radeon HD 6770M
iPad Mini - Wifi 32GB iPhone 4 - 16GB
Time Machine on Networked Drive Guide
Namtaro is offline   2 Reply With Quote
Old Dec 20, 2012, 08:31 PM   #2
deeve
macrumors member
 
Join Date: Dec 2012
Thanks for posting this. I will try and try it tomorrow. I do have a question though before I start. When I type in
sudo tmutil setdestination /Volumes/{mounted-disk-image}

any my mounted disk image is called "Time Machine Backup" attached to my Win XP machine on the E drive would the {mounted-disk-image} just be called Time Machine Backup or would I map it further?

I am not sure if I am using the correct terminology or not, so I hope you understand what I mean.

Also, since I am running it on a Win XP machine, just FAT for the format ok?
deeve is offline   0 Reply With Quote
Old Dec 20, 2012, 09:28 PM   #3
Namtaro
Thread Starter
macrumors regular
 
Join Date: Dec 2011
Quote:
Originally Posted by deeve View Post
Thanks for posting this. I will try and try it tomorrow. I do have a question though before I start. When I type in
sudo tmutil setdestination /Volumes/{mounted-disk-image}

any my mounted disk image is called "Time Machine Backup" attached to my Win XP machine on the E drive would the {mounted-disk-image} just be called Time Machine Backup or would I map it further?

I am not sure if I am using the correct terminology or not, so I hope you understand what I mean.
Just so you know, I had problems with spaces when naming my images and networked drives, so I'd advise you to take out the spaces and just name it 'TimeMachineBackup".

If you are talking about the step where you tell Time Machine to use your sparsebundle image, the image is already mounted onto your Mac so you won't need to map it further.

Quote:
Originally Posted by deeve View Post
Also, since I am running it on a Win XP machine, just FAT for the format ok?
When creating the sparsebundle image, it has to be “Mac OS X Extended (Journaled)” and the Image Format has to be “sparse bundle disk image“ for your Mac to use it as a Time Machine backup drive.
That's what I've been told and it's worked for me. Any reason why you want to use FAT? It's not like you'll be using the image for anything on your Windows XP machine anyways.
__________________
Late 2011 15" Macbook Pro - 2.4GHz i7 | 256GB Samsung 8 SSD | 16GB Memory | AMD Radeon HD 6770M
iPad Mini - Wifi 32GB iPhone 4 - 16GB
Time Machine on Networked Drive Guide
Namtaro is offline   0 Reply With Quote
Old Dec 20, 2012, 11:28 PM   #4
deeve
macrumors member
 
Join Date: Dec 2012
Quote:
Originally Posted by Namtaro View Post
When creating the sparsebundle image, it has to be “Mac OS X Extended (Journaled)” and the Image Format has to be “sparse bundle disk image“ for your Mac to use it as a Time Machine backup drive.
That's what I've been told and it's worked for me. Any reason why you want to use FAT? It's not like you'll be using the image for anything on your Windows XP machine anyways.
Thanks for the tips, I will try that tonight. I figured I had to format it as FAT or else my Windows machine wont recognize it, and I cannot network it. I have the disk partitioned, and the one with the MAC OS formatting is not recognized.


DAVE
deeve is offline   0 Reply With Quote
Old Dec 20, 2012, 11:45 PM   #5
Namtaro
Thread Starter
macrumors regular
 
Join Date: Dec 2011
Quote:
Originally Posted by deeve View Post
Thanks for the tips, I will try that tonight. I figured I had to format it as FAT or else my Windows machine wont recognize it, and I cannot network it. I have the disk partitioned, and the one with the MAC OS formatting is not recognized.


DAVE
Oh, the actual disk on Windows XP can be formatted anyway you want I think... I'm not actually sure, I have my disk formatted as NTFS. When you create the Sparsebundle, that's when it has to be the correct format for your Mac to use it as a Time Machine disk.
__________________
Late 2011 15" Macbook Pro - 2.4GHz i7 | 256GB Samsung 8 SSD | 16GB Memory | AMD Radeon HD 6770M
iPad Mini - Wifi 32GB iPhone 4 - 16GB
Time Machine on Networked Drive Guide
Namtaro is offline   0 Reply With Quote
Old Dec 21, 2012, 12:02 AM   #6
deeve
macrumors member
 
Join Date: Dec 2012
OK...What should the partitions be on the image? Single Partition-Apple Partition Map?
deeve is offline   0 Reply With Quote
Old Dec 21, 2012, 12:32 AM   #7
Namtaro
Thread Starter
macrumors regular
 
Join Date: Dec 2011
Quote:
Originally Posted by deeve View Post
OK...What should the partitions be on the image? Single Partition-Apple Partition Map?
Yes.
__________________
Late 2011 15" Macbook Pro - 2.4GHz i7 | 256GB Samsung 8 SSD | 16GB Memory | AMD Radeon HD 6770M
iPad Mini - Wifi 32GB iPhone 4 - 16GB
Time Machine on Networked Drive Guide
Namtaro is offline   0 Reply With Quote
Old Dec 21, 2012, 08:41 AM   #8
deeve
macrumors member
 
Join Date: Dec 2012
Again, Thank you. I tried it set up like that last night and never could get it to be recognized. I would either get an Error 13 Permission Denied or say the image was not valid when I ran the terminal command. I am going to be out of town after tomorrow, so I might not be able to get back to it for a couple of weeks. I think I am going to try a different HDD and see if that works.

DAVE
deeve is offline   0 Reply With Quote
Old Jan 22, 2013, 08:40 PM   #9
DocsThaName
macrumors newbie
 
Join Date: Jan 2013
I have followed this to the T, still having an issue with the sudo tmutil setdestination command.

I get an error:

/Volumes/TimeMachine: Incompatible file system type: smbfs (error 45)
The backup destination could not be set.

This shouldn't matter since the Disk image is in my shared folder under the correct Disk Image specs.

I'm actually surprised no one else has seen this error and posted about it.

Also might be important to note:

My shared drive is on a Windows 7 Box on a Drobo storage array attached USB 3.0. The volume in question is mounted on windows and I can access through SMB from the mac with no issues.


Any help on this would be greatly appreciated, I have been hitting dead ends all night.

Thanks!
DocsThaName is offline   0 Reply With Quote
Old Jan 31, 2013, 03:02 PM   #10
newt2000
macrumors newbie
 
Join Date: Jan 2013
Worked for me! Thanks -

I'm using OS X 10.8.2, and have a shared volume from SBS2003 thats mounted on my mac. Followed guide and worked. The only issue I had was that the mounted TimeMachine.sparsebundle becomes a mounted volume called 'Time Machine Backups'.

So when I entered the the command:

sudo tmutil setdestination /Volumes/

and then hit the [tab] and it showed the 'Time Machine Backups/' volume listed, among my other vols. Well, I had to account for the spaces in the volume name then it took the tmutil command. Like this:

sudo tmutil setdestination /Volumes/Time\ Machine\ Backups/

Then! Whala!
newt2000 is offline   0 Reply With Quote
Old Oct 2, 2013, 05:56 AM   #11
hatbrox
macrumors newbie
 
Join Date: Oct 2007
Location: The Netherlands
it worked but had to make some changes

Hi,
Thank you very much for this guide. It worked fine for me but had to make a few changes.

On the windows side:
I created a dedicated backup user
on the share itself, I had to give my backup user full control both on
- the share drive
- the security

On the Mac side:
- before create the disk image, disable real-time disk utility, in my case, i had to disable drive pulse
- for "hdiutil resize -size *1000g /users/*user*/Desktop/TimeMachine.sparsebundle"
I removed the "*" before the 1000g

over WIFI, I had an average speed of 10GB per hour.

I use macOS 10.8.5
hatbrox is offline   0 Reply With Quote
Old Oct 9, 2013, 10:27 PM   #12
tien113
macrumors newbie
 
Join Date: Jun 2012
We should add delay in the first script to make it work successfully.
tien113 is offline   0 Reply With Quote
Old Oct 10, 2013, 01:28 AM   #13
ColdCase
macrumors 68000
 
Join Date: Feb 2008
Location: NH
Has anyone actually recovered using this TM backup? Any issues with corruption or invalid backup messages?
__________________
MiniServer (2012-2.3-i7-8-120SSD-1TBHD), rMBP15 (2014-SJE1-2.6-16-SM1024), LG27EA83D, SYDS212JK2, LaCie Big5s, MacBooks, iMacs, AppleTVs, Time Capsules, AEBSs, MacPro early 08, some older stuff.
ColdCase is offline   0 Reply With Quote
Old Oct 10, 2013, 08:25 AM   #14
satcomer
macrumors 601
 
satcomer's Avatar
 
Join Date: Feb 2008
Location: Upstate NYS
I have always know about the blog instructional post Configuring OS X Mountain Lion Time Machine to Work With CIFS (SMB) Share.
__________________
Mac Pro Dual 2.8 Quad(Rev B.), 16 G RAM, OS X 10.9, 23'' LCD
Mac Book Pro Core 2 Duo 2.16Ghz, SuperDrive, 2G RAM, OS X 10.7.5
iPad 3, 32 black
satcomer is offline   0 Reply With Quote
Old Oct 13, 2013, 04:48 PM   #15
hatbrox
macrumors newbie
 
Join Date: Oct 2007
Location: The Netherlands
how do we manage lost network connections?

I often close the lid of my laptop, this puts it to sleep mode.

When I resume it, I have lost the connection and the mounted sparsebundle drive is gone.

Is there anyway to remount the sparsebundle file automatically at regular interval?
hatbrox is offline   0 Reply With Quote
Old Oct 13, 2013, 09:40 PM   #16
satcomer
macrumors 601
 
satcomer's Avatar
 
Join Date: Feb 2008
Location: Upstate NYS
Put the Sparse Image and put it in the Dock. This will make a shortcut in the Dock that will save the connection and you just have top click on it to mount it.
__________________
Mac Pro Dual 2.8 Quad(Rev B.), 16 G RAM, OS X 10.9, 23'' LCD
Mac Book Pro Core 2 Duo 2.16Ghz, SuperDrive, 2G RAM, OS X 10.7.5
iPad 3, 32 black
satcomer is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Does networked attached Time Machine still work in 10.9? scbond OS X Mavericks (10.9) 0 Jan 16, 2014 01:36 PM
Time Machine to Back UP Networked External HDD? Zipforia Mac Peripherals 2 Oct 27, 2013 04:37 PM
Can't use Time Machine with external HDD on a networked Mac? NMF Mac OS X Server, Xserve, and Networking 21 Jun 26, 2013 07:44 PM
Time Machine and Networked Folder/Drive? Namtaro OS X 10.8 Mountain Lion 23 Apr 14, 2013 04:44 PM
Excellent guide for Time Machine tweaks-Can't find it now. Azzin MacBook Pro 1 Mar 23, 2013 06:08 AM

Forum Jump

All times are GMT -5. The time now is 01:11 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC