{"id":1242,"date":"2011-10-13T22:03:18","date_gmt":"2011-10-13T20:03:18","guid":{"rendered":"http:\/\/zerga.dyndns.org\/wordpress\/?p=1242"},"modified":"2014-06-15T16:02:37","modified_gmt":"2014-06-15T14:02:37","slug":"howto-get-macosx-lion-time-machine-to-backup-on-a-samba-share","status":"publish","type":"post","link":"https:\/\/zerga.de\/wordpress\/2011\/10\/13\/howto-get-macosx-lion-time-machine-to-backup-on-a-samba-share\/","title":{"rendered":"Howto Mac OS X Time Machine Backup to a Network Drive"},"content":{"rendered":"<p><a href=\"http:\/\/www.zerga.de\/wordpress\/wp-content\/uploads\/2011\/10\/Time_Machine.png\" rel=\"lightbox[1242]\"><img loading=\"lazy\" class=\"size-full wp-image-1245 alignright\" alt=\"\" src=\"http:\/\/www.zerga.de\/wordpress\/wp-content\/uploads\/2011\/10\/Time_Machine.png\" width=\"128\" height=\"128\" srcset=\"https:\/\/zerga.de\/wordpress\/wp-content\/uploads\/2011\/10\/Time_Machine.png 128w, https:\/\/zerga.de\/wordpress\/wp-content\/uploads\/2011\/10\/Time_Machine-50x50.png 50w\" sizes=\"(max-width: 128px) 100vw, 128px\" \/><\/a>I do not own a Time Capsule, I do not plan to get one, nor do i want to connect a usb disk every time i feel like making a backup of my stuff. What i do have however is a wireless network and a Windows 7 PC. Why not use the available disk space in my PC for the backups of my Macbook Pro? I found out how to Time Machine Backup to a Network Drive&#8230;<\/p>\n<p>In Snow Leopard it was still possible with a few tweaks and manual image file creation to get the OS to actually backup over the Network onto a Windows NTFS disk. Hoozah! In Lion (MacOSX 10.7.2) there is even another step required to get the backup process running. Using just step 1 it will fail with the message &#8216;The network backup disk does not support the required AFP features&#8217;.<\/p>\n<p>1. So besides <a title=\"Howto convince MacOSX Time Machine to backup on Samba Network Share (Win\/Linux)\" href=\"http:\/\/ww.zerga.de\/wordpress\/2010\/02\/15\/howto-convince-mac-os-time-machine-to-backup-on-samba-network-share-winlinux\/\" target=\"_blank\">the sam<\/a><a title=\"Howto convince MacOSX Time Machine to backup on Samba Network Share (Win\/Linux)\" href=\"http:\/\/www.zerga.de\/wordpress\/2010\/02\/15\/howto-convince-mac-os-time-machine-to-backup-on-samba-network-share-winlinux\/\" target=\"_blank\">e steps as in Snow Leopard to prepare the Backup Image File (my previous post)<\/a> you will also need to&#8230;<\/p>\n<p>2. Download and run the script from this file to modify backupd in such a way that it accepts remote disk on the network share: <a href=\"http:\/\/www.zerga.de\/wordpress\/wp-content\/uploads\/2011\/10\/backupd_anyafp_r2.zip\">backupd_anyafp_r2<\/a> &#8211; just unpack and run .\/install.sh from the terminal.<\/p>\n<p>Thanks to <a href=\"http:\/\/msftguy.blogspot.com\/2011\/07\/lion-time-machine-and-afp-feature-bits.html\" target=\"_blank\">msft.guy<\/a> for the script!<\/p>\n<p><del>PS: I still get the feeling that the backup of a FileVault encrypted home directory even on Lion still doesn&#8217;t work while being logged in. Meh.<\/del><\/p>\n<p>Correction: I had to switch to FileVault2. Now the whole disk is encrypted and my guess is Time Machine can handle that\u2026<\/p>\n<p style=\"text-align: center;\"><strong>What if I still can&#8217;t find my share in TimeMachine?<br \/>\n<\/strong>(added 24. Jan. 2013)<strong><br \/>\n<\/strong><\/p>\n<p>Here is a checklist what I would try then:<\/p>\n<ol>\n<li style=\"text-align: left;\">close the preferences or even reboot after running the script above.<\/li>\n<li style=\"text-align: left;\"><strong>Find out your Computer Name:<\/strong>\n<ol>\n<li>Go to <em>Apple menu &gt; System Preferences<\/em> and click <em>Sharing<\/em>.<\/li>\n<li>Note the computer name appearing at the top of the window.<br \/>\n&#8211; For example &#8220;ZergasMacbook&#8221;.<\/li>\n<\/ol>\n<\/li>\n<li style=\"text-align: left;\"><strong>Find your MAC address:<\/strong>\n<ol>\n<li>In Apple menu, select <code>System Preferences...<\/code><\/li>\n<li>From the <strong><code>View<\/code><\/strong> menu in System Preferences, select <strong><code>Network<\/code><\/strong>.<\/li>\n<li>In the left column of the <code>Network<\/code> preference window that opens, click the name of your connection ( <strong><code>Ethernet <\/code><\/strong><code>or<\/code> <strong><code>Built-in Ethernet<\/code><\/strong>).<\/li>\n<li>Click the <strong><code>Advanced...<\/code><\/strong> button, and in the dropdown, click the <strong><code>Hardware<\/code><\/strong> or <strong><code>Ethernet<\/code><\/strong> tab.<\/li>\n<li>The address is the string of letters and numbers next to &#8220;MAC Address:&#8221; or &#8220;Ethernet ID:&#8221;.<br \/>\n&#8211; For example &#8220;00:15:20:aa:fe:a1&#8221;.<\/li>\n<\/ol>\n<\/li>\n<li style=\"text-align: left;\"><strong>Create your sparsebundle:<\/strong><strong><\/strong><strong><\/strong>\n<ol>\n<li>Follow the steps described in my guide: Create a sparsebundle on your Mac manually with the name &#8220;ComputerName_MACaddressWithoutColons.sparsebundle&#8221; and move it into the shared folder on the windows machine.<br \/>\n&#8211; In the case of the examples above it would be &#8220;ZergasMacbook_001520aafea1.sparsebundle&#8221;.<\/li>\n<\/ol>\n<\/li>\n<li style=\"text-align: left;\"><strong>Connect to the share:<\/strong>\n<ol>\n<li>On your Mac, in Finder go to the menu <strong>Go<\/strong> -&gt; <strong>Connect to Server&#8230;<\/strong><\/li>\n<li>Choose the share with the sparsebundle in it on your Windows computer. The share will now be mounted under Volumes with the name of <strong>the<\/strong> <strong>share folder<\/strong> you gave in windows.<br \/>\n&#8211; For example let&#8217;s call the directory &#8220;MacBackup&#8221; on the computer &#8220;WindowsPC&#8221; then you a folder on your Mac called &#8220;\/Volumes\/MacBackup&#8221;.<\/li>\n<\/ol>\n<\/li>\n<li style=\"text-align: left;\"><strong>Mount the sparsebundle:<\/strong>\n<ol>\n<li>Open a terminal and mount the sparsebundle as a drive under \/Volumes on your mac by typing: <i>hdiutil attach -verbose \/Volumes\/MacBackup\/ZergasMacbook_001520aafea1.sparsebundle<\/i><br \/>\nYou can also just double-click on it to mount (thanks, mike!).<\/li>\n<\/ol>\n<\/li>\n<li style=\"text-align: left;\"><strong>Connect the sparsebundle:<\/strong>\n<ol>\n<li>Now add the sparsebundle as the Time Machine destination with the terminal by typing: <i>sudo tmutil setdestination \/Volumes\/mounted_sparse_bundle<\/i><\/li>\n<\/ol>\n<\/li>\n<li style=\"text-align: left;\">Then try starting the preferences and go to TimeMachine looking for the sparsebundle again.<\/li>\n<\/ol>\n<p>BTW: In the terminal you can hit TAB and OSX will complete the name of a file or folder you were about to write. Like this you dont have to type all the sparsebundle file name.<\/p>\n<p>Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I do not own a Time Capsule, I do not plan to get one, nor do i want to connect a usb disk every time i feel like making a backup of my stuff. What i do have however is a wireless network and a Windows 7 PC. Why not use the available disk space [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":1245,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[6,9],"tags":[274,15,268,14,16,271,273,269,267,270],"_links":{"self":[{"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/posts\/1242"}],"collection":[{"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/comments?post=1242"}],"version-history":[{"count":21,"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/posts\/1242\/revisions"}],"predecessor-version":[{"id":1903,"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/posts\/1242\/revisions\/1903"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/media\/1245"}],"wp:attachment":[{"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/media?parent=1242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/categories?post=1242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zerga.de\/wordpress\/wp-json\/wp\/v2\/tags?post=1242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}