{"id":24,"date":"2019-11-02T13:17:09","date_gmt":"2019-11-02T13:17:09","guid":{"rendered":"https:\/\/www.grizzly-hills.com\/?p=24"},"modified":"2019-11-02T13:17:09","modified_gmt":"2019-11-02T13:17:09","slug":"ubuntu-19-10-setting-up-time-machine","status":"publish","type":"post","link":"https:\/\/www.grizzly-hills.com\/index.php\/2019\/11\/02\/ubuntu-19-10-setting-up-time-machine\/","title":{"rendered":"Ubuntu 19.10 (and 20.04): Setting Up Time Machine"},"content":{"rendered":"\n<p>Setting up an Ubuntu machine to act as an Apple Time Machine server is surprisingly simple. This example uses a directory on the boot drive (<code><strong>\/srv\/netatalk\/time-machine<\/strong><\/code>), but it&#8217;s more likely that you want to use a directory on a large disk.<br \/>Here are the steps&#8230;<\/p>\n\n\n<p>Install the needed packages:<\/p>\n\n\n<pre class=\"wp-block-preformatted\"><strong>sudo apt install netatalk avahi-daemon<\/strong><\/pre>\n\n\n<p>Edit the netatalk config file:<\/p>\n\n\n<pre class=\"wp-block-preformatted\"><strong>sudo vi \/etc\/netatalk\/afp.conf<\/strong><\/pre>\n\n\n<p>Add a section for your Time Machine:<\/p>\n\n\n<pre class=\"wp-block-preformatted\"><strong>[Time Machine]\n  path = \/srv\/netatalk\/time-machine\n  time machine = yes<\/strong><\/pre>\n\n\n<p>Create a directory to act as the Time Machine drive:<\/p>\n\n\n<pre class=\"wp-block-preformatted\"><strong>sudo mkdir -p \/srv\/netatalk\/time-machine\nsudo chown nobody:nogroup \/srv\/netatalk\/time-machine\nsudo chmod 777 \/srv\/netatalk\/time-machine<\/strong><\/pre>\n\n\n<p>Restart netatalk:<\/p>\n\n\n<pre class=\"wp-block-preformatted\"><strong>sudo service netatalk restart<\/strong><\/pre>\n\n\n<p>Now, on your Mac, you should be able to open the <strong>Time Machine<\/strong> settings in <strong>System Preferences<\/strong> and use <strong>Select Disk&#8230;<\/strong> to pick your new Time Machine backup drive.<\/p>\n\n\n<h3 class=\"wp-block-heading\">Update for Ubuntu 20.04 and other notes<\/h3>\n\n\n<p>Since I first wrote this, I have updated to Ubuntu 20.04 and everything still seems to work. However, I never made it clear that you must make sure your backup drive is available and connected on your Mac before you can use it as a Time Machine backup drive.<\/p>\n\n\n<p>Once your drive is set up under Ubuntu, go to your Mac and open a Finder window. Under the Network section in the sidebar, you should see your Ubuntu machine listed. Double-click on the machine name, and you should see any shared folders on the machine. You may have to click on the Connect  button in the upper right of the window to login before you can use the drive.<\/p>\n\n\n<p>Once you are logged in, you should then be able to use the drive with Time Machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up an Ubuntu machine to act as an Apple Time Machine server is surprisingly simple. This example uses a directory on the boot drive (\/srv\/netatalk\/time-machine), but it&#8217;s more likely that you want to use a directory on a large disk.Here are the steps&#8230; Install the needed packages: sudo apt install netatalk avahi-daemon Edit the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.grizzly-hills.com\/index.php\/2019\/11\/02\/ubuntu-19-10-setting-up-time-machine\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Ubuntu 19.10 (and 20.04): Setting Up Time Machine&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[16,21],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-linux-systems-administration","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.grizzly-hills.com\/index.php\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}