OSX Timemachine and Samba/Windows share

April 27, 2008 at 10:28 pm 118 comments

Hello all,

This is a tutorial on how to use OSX 10.5.2 time machine with a Linux Server/Windows Server/Windows Share. I hope that you have already set up your samba server or windows share on the network if not please read the Samba-Howto or windows file sharing. Also make certain that the shares have read write access! Now create a directory for each OSX computer that you will be using time machine on the server of windows share. I like to use the name of the OSX computer as the directory. My computer is called Hcomp ( you can change the name of your computer in OSX by going to System Preferences->Sharing) so I create a directory called Hcomp on my server.

Now we need to make it possible for timemachine to access our folders on our network. Open up Terminal (Finder->Applications->Utilities->Terminal) and enter in the command ‘defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1’.

It now should be possible for time machine to show the samba shares and other non OSX shares, but before we can use these shares we have to mount them. Open Finder and click on G0->Connect to server in the finder menubar at the top. For the Server enter in smb://yourusername@yourservername_or_ip/YourMacOSXComputerName. For example my server is called ‘Bob’ and my OSX computer name is called ‘Hcomp’. The username and password was set up by reading the samba or windows file sharing like. So lets say my my username to access the server is called ‘willy’ and the password is ‘wonka’. I would then enter in for the server address smb://willy@Bob/Hcomp then I would click on the connect button. The prompt will ask you for the password. Enter that in also.

Now open time machine (Finder->Applications->System Preferences->Time Machine) and click on change disk. If you have mounted the directory correctly it should show up when you click on Change Disk. Select the directory that you have just mounted. For me I would select Hcomp. Now turn time machine on and it will wait 2 minutes before running the back up. If it doesn’t backup automatically then make sure that the ‘Show time Machine status in the menu bar’ is checked and click on the round clock on the menu bar at the top of the OSX screen and click on back up now. it now should run for a little bit and give you an error saying that it cannot create image error. This message is fine because it created a file that we needed for this to work.

Next Open the terminal (Finder->Applications->Utilities->Terminal) and type in ‘ifconfig en0 | grep ether’. After hitting return the command should have given you something like ether 00:00:45:12:8a:91. Write this number down without the colons. Now you have to ask yourself how much space to allocate to the time machine back up. This depends on your setup and how much space you have on your server. I choose 100GB my mac only has 100GB partition. Now the next command will create the sparsebundle that time machine needs to make the whole thing work.

‘hdiutil create -size 100g -fs HFS+J -volname “TimeMachine Hcomp” Hcomp_000045128a91.sparsebundle’

Do not type this in to the terminal yet without modifying it to your settings. Basically after the ‘-size 100g’ is the maximum size that time machine can be. ‘-volname “TimeMachine Hcomp” can be changed to ‘-volname “anything that you want”‘ but the last part of the command is important. Remember you wrote down the numbers for your mac ether 00:00:45:12:8a:91.
Well for the last part replace ‘Hcomp with you computer name and _000045128a91 with the number that you wrote down.

The last paragraph might be confusing so here is another example.
Servername: Server
OSXComputerName: OSX
MAC: 00:00:1F:12:82:92
Size of time machine space : 200GB
command ‘hdiutil create -size 200g -fs HFS+J -volname “OSX Backup” OSX_00001F128292.sparsebundle’

Now you should a file like Hcomp_000045128a91.sparsebundle or OSX_00001F128292.sparsebundle on your computer. Now copy this file to the server by issuing ‘cp -R Hcomp_000045128a91.sparsebundle /Volumes/Hcomp’ or ‘cp -R OSX_00001F128292.sparsebundle /Volumes/OSX’ but remember to replace sparsebundle with your sparsebundle or you will get an error. If everything worked correctly click on the time machine button at the top (the round clock icon on the menu bar) and do backup now. It should run and will take at long time the first time you do this.

Happy travels through time.

Entry filed under: OSX Tutorials, Uncategorized. Tags: , , , .

118 Comments Add your own

  • 1. dlipton  |  September 3, 2008 at 6:11 pm

    fantastic it worked for me!
    very clear instructions thanks for sharing !

    Reply
  • 2. bharris  |  September 20, 2008 at 11:49 am

    Of all the asinine solutions for this problem out there on the web, yours is the only one that worked! Thank you for being so clear and straightforward.

    Reply
    • 3. Bill  |  June 14, 2010 at 8:20 pm

      Excellent (so far) for me however, I’m having an error from the image utility – it’s coming back with: (Here is my CL and the result)

      hdiutil create -size 100g -fs HFS+J -volname “TimeMachine Hcomp” Backup_NHCTV_MacBPro_c42c03018874.sparsebundle

      hdiutil: create: Only one image can be created at a time.

      ‘preciate this help, already.

      Reply
  • 6. Hans  |  September 25, 2008 at 6:02 pm

    Thanks for the excellent description, thanks to you I finally got it working! Only question I still have: how reliable is this setup, obviously not supported by Apple…

    Reply
  • 7. hupio  |  September 26, 2008 at 3:36 am

    Hm.. I don’t know how reliable this setup is, but hopefully apple won’t disable this feature.

    I am glad that everyone has gotten it to work.

    Reply
  • 8. Casey  |  September 26, 2008 at 4:04 am

    Worked great thx! I can’t stress enough that the machine name part of the sparse bundle is super important 😉

    Odd thing is if you watch the share from the windows side when time machine initially sets it up it creates the files. I’m not sure what it is that time machine just isn’t able to get done on it’s own

    Reply
  • 9. chuc  |  September 29, 2008 at 9:21 pm

    I found that the -volname flag always caused an error, but that it was safe to drop it

    Thanks!

    Reply
  • 10. no  |  October 5, 2008 at 7:14 pm

    On iMacs, it’s likely to be en1 that you need to get the MAC address for.

    Reply
  • 11. Francis  |  October 7, 2008 at 5:10 pm

    can you do a full restore from the install disk? i’m about to send out my macbook for repairs.

    Reply
  • 12. Pär  |  October 8, 2008 at 7:48 am

    Thanks for a great description! On my system (10.5.5) the -volname did not accept names containing a space i.e. “TM macpro” gave error ‘only one image can be created at a time’ while “TMmacpro” did the job.

    Reply
  • 13. Sumin  |  October 16, 2008 at 9:56 am

    It works. Thanks a lot!

    Reply
  • 14. Darren Hoch  |  October 20, 2008 at 2:13 am

    I finally got this to work. The -volume is not required. I tried to use a pre-existing samba share name and kept on getting “Unable to mount disk”. The absolute key here is that you create a samba share that is the same exact name as your mac computer. Also, regardless of whether you use en0 (wired) or en1 (wireless) the TM uses the ethernet address of en0. I am currently backing up my laptop over wireless after 10+ attempts.

    Reply
  • 15. DI  |  October 31, 2008 at 8:19 pm

    Please Place a DIGG button for this article!!!!!

    Reply
  • 16. RichB  |  November 2, 2008 at 7:56 am

    I can also confirm you need to specify en0, even if you’re not using it.

    Reply
  • 17. Pete  |  November 4, 2008 at 6:04 pm

    I’m on a Macbook Air. It only has the wireless interface on en0. I have tried all of the suggestions in this thread. My shared folder is a samba share on a linux system. The thing that made it work for me was dropping the -volname parameter, otherwise I was just getting errors about mounting. Thanks for this thread and all of the contributions in the comments!!!

    Reply
  • 18. ritorujon  |  November 6, 2008 at 5:29 am

    Looks great! Can’t wait to try it:-))) Thanx a lot!!!

    Reply
  • 19. ritorujon  |  November 6, 2008 at 5:44 am

    I’m just a little bit curious…What about right attributes? Are they backed up somehow on samba too, since Samba doesn’t have same ACL attributes as HFS+???

    Reply
    • 20. Sander Versluys  |  July 24, 2011 at 10:39 pm

      That’s not an issue as your using a HFS ‘formatted’ image on your samba share. Everything will be backed up just fine 😉

      Reply
  • 21. Rik  |  November 29, 2008 at 5:02 pm

    Hey man, after a few frustrating hours. I stepped away, googled and here I am. Thanks so much, it worked the 1st time for me.

    Reply
  • 22. Jeff Dempsey  |  December 1, 2008 at 6:40 am

    THANK YOU!!!

    For some help on some of the ethernet MAC address and computer name, it may be helpful to have the Console open on, and set to LOG Database Queries > All Messages. Then you can see what Time Machine does when it tries (and fails) to create the original sparsebundle file. (It actually fails during the Journaling creation on my iMac)

    For the user with a space in the computer name, use quotes around the filename, such as with mine, I did
    hdiutil create -size 300g -fs HFS+J -volname “Time Machine Jeffs imac” “Jeffs imac_02204159eac1.sparsebundle”

    and when copying, I just put quotes around the name as well…

    Again, I would have the console (Applications -> Utilities -> Console open, and watch what Time Machine does. It makes Hupio’s AWESOME DIRECTIONS even better.

    HTH,

    Jeff
    (I’ve had the iMac for a week now, and I LOVE it!, after 20 years of IBM-ness…

    Reply
    • 23. Maxim Robert  |  September 2, 2009 at 1:45 pm

      Thank you so much, I’ve been trying for 2 hours but i just needed those ******** …quotes.
      🙂

      Reply
  • 24. Aaron  |  December 5, 2008 at 6:18 am

    Regarding the “only one image can be created at a time” error, I found this was from copying and pasting the command from a wordpress blog that was using curly quotes. Swap those out for regular quotes and it’s fine.

    Reply
  • 25. Rufus Buschart  |  December 6, 2008 at 2:10 pm

    Thank you very much! It works very well!!!

    Reply
  • 26. Tesso M Costa  |  January 7, 2009 at 7:10 pm

    Thanks… i was trying to make it work on a macbook over the airport.. the thing is.. it only worked when i used the -volname and the mac address i used the ethernet even using the airport… wreck… who knows why… i believe the problem was the mac that i was using from the airport… no the ethernet.

    btw.. i did it using a smb share from a linux machine, (yes.. hit me hard, i desirve it… but i was just testing… ) now ill make the real deal using afp on linux or even nfs… dunno yet.

    Reply
  • 27. Me  |  January 8, 2009 at 2:07 pm

    Thanks a lot! It worked great! Only had a problem with volname with spaces.

    Reply
  • 28. Jeremie  |  January 12, 2009 at 1:13 pm

    On a MacBook Aluminum, specifying the mac adress of the ethernet rather than airport was necessary even though backups will be done over wireless.

    Reply
  • 29. David Vannucci  |  January 13, 2009 at 7:46 am

    When I create the image I get the error “hdiutil: create failed – No space left on device” Do I have to make the image size = free space remaining on the disk?

    Reply
  • 30. bombcar  |  January 22, 2009 at 3:37 am

    I was able to make a 500g volume on a 300g disk before copying it over (everything seems to be working fine) – are you sure you have .sparsebundle at the end correctly specified? Paste the exact command line used and check it.

    Reply
  • 31. joe  |  January 24, 2009 at 3:51 am

    Thanks for the great article.

    Easy to follow and had 100% success with this.

    Now I just have to upgrade my ubuntu box’s RAID5 so I’ll have enough room to let TM complete it’s backup!

    Reply
  • 32. recon  |  January 24, 2009 at 4:13 am

    Worked perfect after removing the -volname and ensuring the SMB share was named exactly the same as my Mac’s computer name.

    MacBook Pro backing up to a Maxtor Central Asis 1T NAS

    Thanks for this post and all the comments!

    Reply
  • […] mais qui nécessite normalement d’acheter le couteux boitier Apple. Autre solution ici [ https://hupio.wordpress.com/2008/04/27/osx-timemachine-and-sambawindows-share/ ] avec Samba qui marche chez moi. Si par contre j’ai le malheur de couper le réseau durant […]

    Reply
  • 34. rswillems  |  February 1, 2009 at 8:16 pm

    Super! It worked fine with me, at least initially. Subsequent back-ups get the “the backup disk image could nog be mounted” error. Any solution?

    Reply
  • 35. salvaro  |  February 8, 2009 at 6:19 pm

    great! works fine for me. thanks for sharing.

    Reply
  • 36. JF  |  February 10, 2009 at 7:59 pm

    Thanks for this info. Been looking for a solution like this when Iscsi didn’t work.

    Reply
  • […] I’ve been messing with iSCSI quite a bit lately. I thought I’d enable it on my Ubuntu Linux server, since I have quite a bit of storage space there. My goal was to connect our OSX computer via iSCSI in order to present a 100GB disk to it for use with Time Machine, as  I didn’t have a spare external drive to use for this purpose.  Try as I might, I just couldn’t get ISCSITARGET working reliably on Ubuntu. Ultimately I gave up. Luckily I stumbled acorss this great article on how to use SMB (windows) shares on your network as Time Machine disks.  Read more here […]

    Reply
  • 38. stmo  |  February 16, 2009 at 7:46 pm

    Thank you !!
    First instruction i found that is really clear and working from a Mac OSX 10.5.6 to a Windows 7 computer.

    Reply
  • 39. Steve  |  February 17, 2009 at 8:42 pm

    Just tried this out and I’m currently making the time machine backup!

    Finally putting my windows pc to some good use 😛

    Thanks for the great tutorial.

    Reply
  • 40. Chris  |  March 14, 2009 at 12:07 am

    How does this work with a full restore? Can you simply copy the time machine (sparse bundle) file(s) from the Windows box to an external drive and do a full restore that way?

    Reply
  • 41. Morten  |  March 20, 2009 at 2:40 pm

    Very nice guide; Time Machine is currently running the initial backup to my Ubuntu server.

    I have suggestion which greatly simplifies the procedure:
    While Time Machine tries to initialize the disk image at the server the first time, run ‘ls -l /Volumes/Hcomp’ (the mount point of the network share) several times until the disk image filename appears in the list.
    This removes the complexity of getting the MAC address of the (correct) network card.
    The filename create by Time Machine will look lik this: Hcomp_000045128a91.tmp.sparsebundle (notice the “tmp”), so just remove the “tmp.” part, and the filename can be used.

    Reply
  • 42. Damian Black  |  March 20, 2009 at 7:27 pm

    TimeMachine on windows has suddenly stopped working for me…
    I get an error “The backup disk image could not be mounted”. I recreated a sparsebundle and got the same error. I am able to access the sparsebundle as a remote drive, but TimeMachine can no longer mount it.

    Any ideas? Is this an update to OSX that is stopping this? One clue: it takes a long time before it tells me of the error. Same problem trying to enter the time machine for that file.

    Reply
  • 43. Mark  |  April 12, 2009 at 1:21 pm

    Genius!!! Just bought a secondhand older WD MyBook World raid drive and have struggled for days trying to get the sparsebundle created to the point of giving up until I found the commands on this site. Worked perfectly and Time Machine backing up with no problems as I’m typing this!!!

    Thankyou so much.

    Reply
  • […] TimeMachine die eben eingerichtete Platte zu nutzen, lege ich Jedem das folgende Tutorial ans Herz: Timemachine and Samba, von […]

    Reply
  • 45. JJ  |  May 11, 2009 at 9:34 am

    Following on what Jeff Dempsey added, while making first unsuccessfull attempt at backup, keep console open focused on ‘All messages’ and filter it by ‘sparsebundle’. You should get message saying something like:

    Creating disk image /Volumes/yourvolume/computer name_macaddress.sparsebundle

    Point being is, on different application versions, time machine will try to make sparsebundle of different name, and what you need is file named EXACTLY like time machine tries to name it.

    Thanks for the awesome tutorial 🙂

    Reply
  • 46. Peperoca  |  May 20, 2009 at 12:36 am

    What happens when the image fills up?

    It worked perfectly (over wifi) until i reached the maximum space, now i can’t access the backup nor continue to back up.

    Thanks

    Reply
  • 48. Mathieu Guastella  |  May 25, 2009 at 2:24 pm

    Great job !! I’m using a Mac still 1 day and having added RAM, upgraded to leopard and configured time machine… Really good hardware.. and software too.

    But NEVER-SINCE so good and concrete community of users.. That doesn’t exist on PC..

    Thanks !!

    Mat

    Reply
  • 49. AJ  |  June 15, 2009 at 1:03 am

    I get the message:
    “Time Machine Error
    The Backup disk image could not be created.”

    😦

    Reply
  • 50. Pascal  |  July 10, 2009 at 9:06 pm

    Great!!! Just took my new server in use, and this was the last thing that i couldn’t get running.. Now it works great!!!!

    Reply
  • 51. Bart  |  July 18, 2009 at 1:54 am

    Thanks for the tip. I’ll second the suggestion to use Console to view the correct name for the sparse bundle. I forgot that my computer name was mixed-case, but the logs in Console revealed the correct name.

    Some have asked about restoring from a backup done this way. I just figured that out.

    I’m not sure if it’s possible to do the restore during the system install, but it can be done after through Applications->Utilities->Migration Assistant.

    You don’t have to have Time Machine configured to use the Samba share, but you do have to mount the Samba share in Finder, as described in this article. Then double-click the sparse bundle. This will verify and mount it. Now run Migration Assistant, and select “From a Time Machine backup or other disk.” Your backup will appear there, and you can restore from it.

    Reply
  • 52. David Jameson  |  August 4, 2009 at 2:32 pm

    Perhaps this is a silly question, but if I have mounted the share, why can’t Time Machine create the bundle itself on the share? Why does this have to be done manually?

    Reply
  • 53. Buee  |  August 5, 2009 at 11:25 pm

    Absolute genius! Been trying to get this going for weeks. Thanks.

    One concern I have is, does it go by the MAC address in the sparse bundle? I ask because I would like to do the initial backup via gigabit ethernet, but that will obviously have a different MAC address.

    Reply
  • 54. Marty  |  August 13, 2009 at 10:24 am

    Works great, thanks a lot!

    Regarding the worries about full restore, the screenshots at http://blog.duncandavidson.com/2008/01/restoring-from-time-machine.html suggest that it should be possible to connect to a remote disk (the samba share) at the time you boot from the OS X DVD. Haven’t tried it myself though. Worst case scenario would be a clean install and then restoring your personal files from there, I guess.

    Reply
  • […] of my head when I set it all up but I figured someone had it figured out, otherwise why would so many articles exist to show you how to set it […]

    Reply
  • 56. Simon C  |  August 23, 2009 at 12:21 pm

    Awesome!

    This works really well. I am now using time machine to backup my MBP wirelessly to a USB drive attached to a windows XP machine on my wired network.
    It took a bit of fiddling with my firewall settings, and as other people noted above the drive name needs to exactly the same as the name of the Mac Book but now all works a treat. Saves me having to buy an Airport Extreme just to share a USB external HDD across the network! Only question I have is about the implication in backing up to a drive that is formatted NTFS and not for Mac OSX?

    Excellent work!

    Simon

    Reply
  • 57. Matt  |  August 29, 2009 at 1:27 am

    Wow. This works like a charm with my Windows fileshares + Mac laptops (looks like I’m not alone) and is exactly the kind of support I like to see coming out of the Mac community. Awesome job!!

    Mac lovers appreciate macs for their simplicity. However, still gotta be able to tinker every so often to make it truly powerful.

    Kudos.

    Matt

    Reply
  • 58. David Jameson  |  August 30, 2009 at 1:01 am

    I have now done this for 4 different machines. To make it more convenient, I created a .bashrc function as follows

    function maketimemachinesparsebundle()
    {
    size=$1g
    macaddress=`ifconfig en0 | grep ether | sed s/://g | sed s/ether\ // | tr -d [:space:]`
    hostname=`echo $HOSTNAME | sed s/.local//`
    volname=”Backup of $hostname”
    diskname=”$hostname”_”$macaddress”.sparsebundle

    sudo hdiutil create -size $size -type SPARSEBUNDLE -nospotlight -volname “$volname” -fs “Case-sensitive Journaled HFS+” -imagekey sparse-band-size=262144 -verbose $diskname

    }

    So now all you have to write

    maketimemachinesparsebundle 200

    to create a 200Gb sparse bundle ready for use

    Reply
  • 59. David Jameson  |  August 30, 2009 at 1:04 am

    By the way, I found a very useful shareware program called “Back in time” that’s rather useful if you’re administering multiple backups…it will open any of the sparse bundles and let you get at whatever you need.

    http://www.tri-edre.fr/english/backintime.html

    Reply
  • 60. Jeremy  |  September 2, 2009 at 1:11 pm

    David Jameson, your function worked perfectly. I just made a simple shell script called ‘tmvol.sh’, removed the function wrapper, and passed the size as first param like ‘./tmvol.sh 250’. Worked great! Thanks!

    Reply
  • 61. David Jameson  |  September 2, 2009 at 2:40 pm

    Glad it worked for you — I guess I should have done it as a shell-script in the first place, but I just happened to have .bashrc open at the time so that was convenient.

    Reply
  • […] OSX Timemachine and Samba/Windows share | Hupio’s Weblog: How to use Apple’s OS X 10.5.2 Time Machine backup software with a Linux server, Windows server or Windows network share. It presumably works just as well with later versions. […]

    Reply
  • 63. Bil K  |  September 12, 2009 at 8:50 am

    Another note of thanks. I wasn’t sure, as I typed in the unixian incantations, whether I was more impressed at how you managed to figure this out or how grateful I was that you saw fit to post it online. Indebted to your benevolence.

    Reply
  • 64. Ben Peter  |  October 4, 2009 at 7:43 am

    I try to create the sparsebundle directly on the server (not enough space locally). After creation of the bundle, I get an error (operation not supported), even if I try with a very small image size.

    Any ideas?

    /Volumes/Bam-Furlong-Ben-Peter > hdiutil create -size 1m -fs “HFS+J” -volname “TimeMachineBamFurlong” Bam-Furlong-Ben-Peter_00254bd5c29c.sparsebundle
    hdiutil: create failed – Operation not supported

    Reply
  • 65. Kevin Lin  |  October 13, 2009 at 11:21 pm

    while running hdiutil create image, I accidentally used a wrong MAC address. the image was copied to the NAS volume and backup was executed. sure it failed.

    but even recreated, copied the correct image and removed the wrong image, whenever backup is executed, it seems time machine is still using the old/wrong image file. (Macbook_0016cbcd8569.tmp.sparsebundle was shown in the destination volume while backup. and that MAC address was the wrong one.)

    can anybody help to clean up this ghost? thanks!

    Reply
  • 66. Cisco  |  December 20, 2009 at 9:08 pm

    I was having an error after copying the sparsebundle to my server. The error I was getting was 68. After looking at the permissions of my folder, and the amount of simultaneous connections (or users as Server 2008 calls it) was set to 1. I had set this to prevent other people from accessing the system since the data is very important. However, the connection to mount the SMB share counts as 1. I needed 2 connections in order for Time Machine to connect as well. After making this change, I also found that the firewall “deny/allow” prompt flashed way too quickly. After a couple of times to forcing the machine to back up now, I was able to click fast enough, and the backup started. Thank you very much for the tutorial! It was flawless, the problems I had, besides the aforementioned, were all caused by my permissions on the server end.

    Reply
  • 67. Juan  |  December 21, 2009 at 5:46 am

    Excellent tutorial! Will be adding it to my Bookmarks and implementing it soon with my Ubuntu Server.
    Thanks!

    Reply
  • 68. Patrick O'Connor  |  January 22, 2010 at 9:30 am

    Wonderful Tip. Tried with all the newest updates in Snow Leopard and it still works. Thanks for the information!

    Reply
  • 69. Best deals on Mac's? - ScoobyNet  |  February 2, 2010 at 8:41 am

    […] (AFP) There are ways of enabling Time Machine use with other network disks, there's a tutorial here – credit to Markus for this link. Not sure I'd risk my backups on some Time Machine hack though, […]

    Reply
  • 70. Home NAS that supports AFP? - Mac-Forums.com  |  February 22, 2010 at 9:16 pm

    […] a Time Machine backup to a Windows Share. There are a number of tutorials out there, most namely this one. As far as a DVD goes, no, Time Machine doesn't have that capability. __________________ […]

    Reply
  • 71. Dan  |  March 11, 2010 at 7:11 pm

    Great solution. Much appreciated 🙂

    Reply
  • 72. Ed  |  March 15, 2010 at 3:53 am

    thanks for the excellent guide. For some reason, no one else mentions that you have to create a sparsebundle for this to work…

    Reply
  • 73. Sarvesh Bhardwaj › links for 2010-04-19  |  April 20, 2010 at 3:03 am

    […] OSX Timemachine and Samba/Windows share « Hupio’s Weblog (tags: osx backup mac apple network hack windows howto samba timemachine whs homeserver) […]

    Reply
  • 74. links for 2010-04-19 « Sarvesh’s Blog  |  April 20, 2010 at 3:03 am

    […] OSX Timemachine and Samba/Windows share « Hupio’s Weblog (tags: osx backup mac apple network hack windows howto samba timemachine whs homeserver) […]

    Reply
  • 75. Francisco Parada  |  June 10, 2010 at 3:43 am

    So my RAID crapped out … Couldn’t recover … I installed a new system, but I’m having a hard time. Do I still follow all of the same steps so I can recover from my backups?

    Reply
  • 76. sh4nce  |  July 28, 2010 at 3:49 pm

    I tried this but backup still fails.

    First difference with this tutorial is that the file created on my smb share is only computername.sparsebundle. The mac address is never added.

    So I tried it with a sparsebundle created locally and named only by computername. When I start backup from Time Machine again it then creates a computername-1.temp.sparsebundle instead. Adding the -1.

    I’m using OS X 10.6 and a WD MyBook World (blue rings) 500 GB connected over a linksys router and airport express. I created a share and user with full rights. The netowrk disk is writable since the initial sparsebundle (only around 3MB) is created.

    Any clues on what is going wrong here?

    Reply
  • 77. Michael  |  August 28, 2010 at 4:07 pm

    Hmm, I keep failing with this. Is it correct that after copying the .sparsebundle to the samba share, it does not appear as one sparsebundle file but as a folder “bands” and some other files “Info.bckup”, “Info.plist”, “token”?

    When I then start TimeMachine, it will first create an additional file xyz.tmp.sparsebundle and give me an error after a while…

    Reply
  • 78. Jimmer  |  October 4, 2010 at 2:28 pm

    Awesome, you rock. Thx for publishing this ;]

    Reply
  • 79. Dan  |  October 15, 2010 at 2:33 am

    How do you increase the size of the backup?
    Can you input ‘-size 200tb’ (for Terabytes) or does it have to be typed in as ‘-size 200000g’.

    Reply
  • 80. Backup Solution for my Mac  |  October 31, 2010 at 8:30 pm

    […] Time Machine, the method detailed here seems to be the one which most people have success with. Failing that, I would look at Synk if you […]

    Reply
  • […] Note: I owe most of the important steps for this process (the Terminal commands) to this blog post from 2008. […]

    Reply
  • […] Note: I owe most of the important steps for this process (the Terminal commands) to this blog post from 2008. […]

    Reply
  • […] Note: I owe most of the important steps for this process (the Terminal commands) to this blog post from 2008. […]

    Reply
  • 84. Bret  |  April 6, 2011 at 9:57 pm

    Thank you so much for this. Like others, I’ve been through a handful of other walkthroughs of this without success. Today, my mac is backing up to my Linux server.

    Thanks so much!

    Reply
  • 85. oyot  |  May 10, 2011 at 3:43 pm

    +More Article “Time Machine Mac OS X”
    http://devicegadget.com/mac-os-x/time-machine-mac-os-x/1998/

    Reply
  • 86. Share Single Backup Drive with Mac and PC Drija  |  May 25, 2011 at 6:14 pm

    […] Connect the disc to your windows machine and share the disc. From your Mac you can mount the shared disc and configure Time Machine to use the network shared disc to do the backups. You can find a simple tutorial about this on the following web:https://hupio.wordpress.com/2008/04/27/osx-timemachine-and-sambawindows-share/ […]

    Reply
  • 87. Giles Smith  |  June 14, 2011 at 11:24 am

    Thanks, now I can backup all our office macs to our ubuntu fileserver no problem!

    Reply
  • 88. Rampant Monk3y - Blog  |  July 1, 2011 at 12:30 am

    […] solutions. Many exist but I was only able to get one method to work. Hupio’s Weblog has only one post fortunately it contains excellent advice. Categories: Uncategorized 0 Comments Tags: Backup, […]

    Reply
  • 89. root  |  July 16, 2011 at 11:37 am

    backed up to my debian samba share happily. thanks very much

    Reply
  • 90. Bob  |  July 24, 2011 at 2:14 pm

    Thanks for a great set of instructions. I found it searching for the answer to a cant create more than one image error. The error was eliminated when i put spaces between -size and -fs and between HFS+J and -volname. This is totally unintuitive given the error message, so I pass it on to all.

    Reply
  • 91. Sander Versluys  |  July 24, 2011 at 10:40 pm

    Even though this is a very old post, it still does the trick! Thanks! 😉

    Reply
  • 92. Whipp  |  July 30, 2011 at 10:37 am

    Does this work under Lion?

    Reply
  • 93. Jens  |  September 4, 2011 at 5:49 pm

    So brilliant! Thanks a lot!

    Reply
  • 94. sex shop  |  September 12, 2011 at 8:27 am

    I have noticed that wise real estate agents just about everywhere are warming up to FSBO Promotion. They are acknowledging that it’s not just placing a sign in the front property. It’s really in relation to building connections with these suppliers who sooner or later will become purchasers. So, once you give your time and efforts to supporting these sellers go it alone : the “Law of Reciprocity” kicks in. Thanks for your blog post.

    Reply
  • 95. Ovidiuiu  |  October 13, 2011 at 5:07 pm

    Having problems with this backing up my Lion macbook pro. Followed all steps but when I run TM I see this error:

    The network backup disk does not support the required AFP features.
    Open Time Machine preferences to select a different backup disk.

    and find this in my logs:

    10/13/11 7:01:14.814 PM System Preferences: TMShowUnsupportedNetworkVolumes is set to TRUE. Use of an unsupported Time Machine destination may result in loss of backup data!!!
    10/13/11 7:01:14.816 PM System Preferences: /Volumes/shiny is not supported as a Time Machine destination because fcntl(fd, F_FULLFSYNC, 1) failed with errno 45 (Operation not supported)
    10/13/11 7:01:14.817 PM System Preferences: /Volumes/shiny is not supported as a Time Machine destination because kTMLockStealingSupported fsctl not implemented.
    10/13/11 7:01:14.817 PM System Preferences: /Volumes/shiny is not supported as a Time Machine destination because kServerReplyCacheSupported fsctl not implemented

    an ideas what could be going wrong?

    also, the share name is shiny, my macbook pro machine name is shiny too. but after TM fails, and I go back to prefs, I see it is trying to backup to shiny-1, I reset it back to shiny (talking about the share name here) and try again, and the whole thing starts afresh 😦

    Reply
  • 96. Emre  |  November 12, 2011 at 12:58 pm

    Hello I really appriciate this article. I did use it to configure my Time Machine to back up to my network drive which is a Western Digital 4 TB USB drive connected to a Windows 7 notebook computer which is in a my network (SMB) Everything went smoothly except after configuration, it failed to back up and said “The network backup disk does not support the required AFP features.” Aparently Lion disabled backing up to a SMB network drive and I can’t find a workaround.

    Do you anytime soon think of doing an update to you article?

    Reply
  • 97. Emre  |  November 12, 2011 at 1:00 pm

    In my previous comment I forgot to tick the boxes for notification. This one is for them 🙂

    Reply
  • 99. davec  |  December 20, 2011 at 9:17 pm

    Still using 10.6.8 – got a TM backup working @ home (MacMini backing up to a Linux file server over Samba) but having trouble @ work. Trying to back up a new-ish iMac (also on 10.6.8) to a windows server SMB share with 0% success.
    Sometimes it gives the error “Problem with Network Password” and sometimes just says “The Backup disk is not available.” I’m able to map the SMB share and write files to it in Finder w/out issue, so am now pretty stumped. Any ideas???

    Reply
  • 100. Josh  |  January 20, 2012 at 2:42 pm

    I know this is a really old post but I’m hoping that since people seem to indicate that it still works, someone out there can help me out!

    I followed the instructions and everything works perfectly until the very last step. When i try to copy the sparse bundle over to the NAS I get an error “permission denied” and “unable to copy extended attributes to /Volumes/… Permission denied.” It then runs through the list of files within the sparse bundles file and for each on says “no such file or directory.” The file is definitely there – I can browse out to it in Finder and even view the underlying files within it. What am I doing wrong?! Can anyone please help me?

    FYI I’m on a MBP running OSX 10.7.2. Any help is greatly appreciated!

    Reply
    • 101. hupio  |  January 20, 2012 at 3:29 pm

      have you tried sudo?
      ‘sudo cp -R Hcomp_000045128a91.sparsebundle /Volumes/Hcomp’
      or
      ‘sudo cp -R OSX_00001F128292.sparsebundle /Volumes/OSX

      Reply
  • 102. Ovidiu Pacuraru  |  January 27, 2012 at 8:30 am

    are you guys sure it still works now 27.01.2012 with the newest updates and all? I never got it to work, tried every suggestion 😦 and then gave up.
    If you can confirm it still works, I’ll give it another try…

    Reply
  • […] so far, I’ve tried the suggestions here, but am getting error: https://hupio.wordpress.com/2008/04/27/osx-timemachine-and-sambawindows-share/ […]

    Reply
  • 104. Ryan Walker  |  March 3, 2012 at 12:44 am

    I’ve set this up on a few Macs with no problems until today. An iMac running 10.7 does not list the network volume in Time Machine. I double checked the defaults write with a defaults read, and TMShowUnsupportedNetworkVolumes is 1.

    Has anyone else encountered this?
    Any suggestions?
    Any idea how to set the volume directly in /Library/Preferences/com.apple.TimeMachine.plist ?

    Reply
  • 105. Ovidiu Pacuraru  |  March 5, 2012 at 11:50 am

    “Your comment is awaiting moderation.” – so I am trying to comment again 😦

    are you guys sure it still works now 27.01.2012 with the newest updates and all? I never got it to work, tried every suggestion and then gave up.
    If you can confirm it still works, I’ll give it another try…

    Reply
  • 106. Daniel Mitchell (@danielrmitchell)  |  March 15, 2012 at 4:23 pm

    I have experienced a problem with regards to this setup with OS X Lion and am hoping someone may shed some light on the issue for me?

    I have followed the instructions given and everything seems to have worked perfectly, even copying over the .sparsebundle (which Ryan, above seems to have issues with) went along nicely. However, upon first backup i receive the following message “Time Machine could not complete the backup.
    The network backup disk does not support the required AFP features…”

    The backup location is on a Windows 7 64bit machine with a 1TB HDD.

    Any thoughts/idea’s or solutions? Thanks

    Reply
  • 107. Amber  |  March 28, 2012 at 7:10 pm

    Ok So I got as far as it added the sparsebundle to the users on my computer, and then copied the file over to the PC Server. Now I am stuck… It created a device OSX Backup where the backups are being stored, but it ends in an error, it does not complete. How is this saving my backup on the computer?

    HELP ME PLEASE!!!!

    Reply
    • 108. Amber  |  March 28, 2012 at 7:10 pm

      The backup disk image “/Volumes/DesignShare-4/OSX_e80688ccad36.sparsebundle” is already in use.

      This is what I keep getting!

      Reply
  • 109. pallemannen  |  April 29, 2012 at 6:58 pm

    LION USERS:

    This is what you need to make it work on Lion (in addition to the above): https://github.com/downloads/msftguy/backupd-afpbits/backupd_anyafp_r2.zip

    Source: http://techpump.co.uk/?p=105

    Reply
  • 110. Macbook time machine - backup  |  August 13, 2012 at 2:37 pm

    […] […]

    Reply
  • […] TimeMachine die eben eingerichtete Platte zu nutzen, lege ich Jedem das folgende Tutorial ans Herz: Timemachine and Samba, von […]

    Reply
  • 112. http://tinyurl.com/bcnmghe  |  January 5, 2013 at 2:05 pm

    Thanks for the post for writing “OSX Timemachine and Samba/Windows share Hupios Weblog”.

    I actuallywill really be coming back for more reading and commenting soon enough.

    Thanks a lot, Darla

    Reply
  • 113. http://tinyurl.com/housday37187  |  January 11, 2013 at 6:35 pm

    This particular blog, “OSX Timemachine and Samba/Windows share Hupios Weblog” ended up being terrific.
    I am making out a duplicate to present my personal buddys.
    I appreciate it,Patricia

    Reply
  • 114. http://tinyurl.com/housfroud24421  |  January 17, 2013 at 3:16 pm

    How long did it require you to create “OSX Timemachine and Samba/Windows share Hupios Weblog”?
    It comes with quite a lot of fantastic information and facts.
    Thanks -Carmen

    Reply
  • 115. http://tinyurl.com/shobsmart01250  |  January 23, 2013 at 9:34 am

    “OSX Timemachine and Samba/Windows share Hupios Weblog” was a terrific post, cannot help but wait
    to read much more of ur blogs. Time to squander several time on-line lol.
    Thank you ,June

    Reply
  • 116. Oliver  |  July 9, 2013 at 9:12 am

    I am actually glad to glance at this website posts which includes lots of
    useful information, thanks for providing these information.

    Reply
  • 117. Virgil  |  January 3, 2015 at 3:32 pm

    You post very interesting articles here. Your blog deserves much more visitors.
    It can go viral if you give it initial boost, i know very useful tool that can help you, just
    type in google: svetsern traffic tips

    Reply
  • […] I did not test this solution, but looks someone did a little write up for this: OSX Timemachine and Samba/Windows share « Hupio’s Weblog […]

    Reply

Leave a reply to Patrick O'Connor Cancel reply

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories

April 2008
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930