{"id":62,"date":"2008-07-09T21:40:05","date_gmt":"2008-07-09T19:40:05","guid":{"rendered":"http:\/\/bergs.biz\/blog\/?p=62"},"modified":"2015-06-19T09:20:23","modified_gmt":"2015-06-19T07:20:23","slug":"encrypted-timemachine-backups-on-network-share","status":"publish","type":"post","link":"https:\/\/bergs.biz\/blog\/2008\/07\/09\/encrypted-timemachine-backups-on-network-share\/","title":{"rendered":"Encrypted TimeMachine backups on network share"},"content":{"rendered":"<p>Mac OS normally doesn&#8217;t allow you to use network shares as targets for TimeMachine backups. This can be worked around, tho. \ud83d\ude42<\/p>\n<p>First you need to tweak Mac OS to accept network shares by entering the following command in a <code>Terminal<\/code> session:<\/p>\n<pre>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1<\/pre>\n<p>That would already allow you to store your backups on a network share. But do you really want to trust your valuable data to a network share that can potentially be accessed by untrusted users, such as your favorite bastard admin from hell?! <code>:)<\/code><\/p>\n<p>Here&#8217;s when the following comes in:<\/p>\n<p>You will create an encrypted sparse bundle and use it as a target for the backup.<\/p>\n<p><!--more-->Start <code>Disk Utility<\/code> from <code>Utilities<\/code> and click <code>New Image<\/code> in the toolbar. In <code>Save as<\/code> move to a local location where you would like to create the backup on and enter a filename that matches the following template:<\/p>\n<pre>&lt;Computer Name&gt;_&lt;Ethernet Address&gt;.sparsebundle<\/pre>\n<p>For <code>&lt;Computer Name&gt;<\/code> enter the name of your Mac which you can look up under System -&gt; Preferences -&gt; Sharing. For <code>&lt;Ethernet Address&gt;<\/code> enter the Ethernet address (aka &#8220;MAC address&#8221;) of your network interface that you use to access the network share, in the format <code>112233445566<\/code>.<\/p>\n<p>For the volume name, choose <code>Time Machine<\/code>. Choose a volume size that is as large as the backup should get. Note that the image file won&#8217;t be as large from the beginning on, but it may later grow to that size. Choose an encryption mode; 128-bit AES should be fine. <strong>Very important:<\/strong> As an <code>Image Format<\/code> choose <code>Sparse bundle disk image<\/code>. Press <code>Create<\/code>. When prompted for a password, enter a &#8220;strong&#8221; password that&#8217;s not easy to guess. Check <code>Remember password in my keychain<\/code>.<\/p>\n<p>Finally, move the sparsebundle to your network share where you would like your backup to be stored.<\/p>\n<p>Now you need to move your saved password from the <code>Login<\/code> keychain to the <code>System<\/code> keychain so that it is automatically used by Time Machine. Open <code>Keychain Access<\/code> from your <code>Utilities<\/code> folder and select the <code>Login<\/code> keychain. Drag the disk image password for the sparsebundle file you just created to the <code>System<\/code> keychain. Enter your password, and when <code>Keychain Access<\/code> asks you whether you want to allow access to the stored password, click <code>Allow<\/code>.<\/p>\n<p>Now start <code>Time Machine<\/code> in <code>System Preferences<\/code>, click <code>Change Disk<\/code>, and then select the network share where you would like your backup created.<\/p>\n<p>That should be it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac OS normally doesn&#8217;t allow you to use network shares as targets for TimeMachine backups. This can be worked around, tho. \ud83d\ude42 First you need to tweak Mac OS to accept network shares by entering the following command in a Terminal session: defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 That would already allow you to store your [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,133],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-mac-computers","category-storage-computers"],"_links":{"self":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":1,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":872,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions\/872"}],"wp:attachment":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}