Use Ubuntu network share for Apple TimeMachine backups?












5















I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?










share|improve this question





























    5















    I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?










    share|improve this question



























      5












      5








      5


      3






      I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?










      share|improve this question
















      I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?







      backup






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 8 '17 at 19:15







      amc

















      asked Aug 26 '14 at 5:10









      amcamc

      4,67862746




      4,67862746






















          1 Answer
          1






          active

          oldest

          votes


















          7














          NOTE: this is now out of date. See linked question re: TimeMachine in High Sierra



          This is actually really straightforward. My solution below works for a single user, but can likely be easily adapted for multiple users.



          On the Ubuntu machine:




          1. Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at /mnt/backups in /etc/fstab, and you've created a subdirectory called myMac in this backup folder). Because this is a network share it actually doesn't matter what format the disk uses - it could be ext4, btrfs, etc.



          2. Install netatalk (open source AFP):



            sudo apt-get install netatalk



          3. Configure the Apple share by editing location at the bottom of the /etc/netatalk/AppleVolumes.default file (comment out the line with the home directory and add the actual mount location; add your username):



            #~/                "Home Directory"
            /mnt/backups/myMac "TimeMachine" allow:username options:tm,usedots,upriv


            (I'm not sure that options:usedots,upriv needs to be explicitly set but it works for me.)




          4. Restart the netatalk service:



            sudo service netatalk restart


          5. Make sure ports 548/tcp and 5353/udp are open in your firewall.



          On the Mac machine:





          1. Open the terminal and enter:



            defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1


          2. Reboot the computer.



          3. Mount the network share location by selecting the network share from the leftmost pane in a Finder window, or by selecting "Connect to server" from the Finder app's "Go" menu (or press +K) and enter the machine name or IP address of your Ubuntu machine:



            afp://123.456.789.123


            Use your Ubuntu user credentials to authenticate when prompted.




          4. Go to Time Machine preferences (accessible from "System preferences") and select "Change location", selecting to encrypt backups, and begin the backup setup process.




            • This will automatically create the sparsebundle file necessary for backups.



          5. After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺







          share|improve this answer


























          • brilliant tutorial!

            – maxisme
            Mar 13 '16 at 23:27











          • Stacks of thanks for your concise and well written tutorial!

            – fusion27
            Nov 18 '17 at 15:44






          • 1





            because it took me way too long to realize it, the "username" in step 3 is the actual user name, e.g. "daniel".

            – user2482876
            Jan 13 '18 at 16:18











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f516134%2fuse-ubuntu-network-share-for-apple-timemachine-backups%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          NOTE: this is now out of date. See linked question re: TimeMachine in High Sierra



          This is actually really straightforward. My solution below works for a single user, but can likely be easily adapted for multiple users.



          On the Ubuntu machine:




          1. Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at /mnt/backups in /etc/fstab, and you've created a subdirectory called myMac in this backup folder). Because this is a network share it actually doesn't matter what format the disk uses - it could be ext4, btrfs, etc.



          2. Install netatalk (open source AFP):



            sudo apt-get install netatalk



          3. Configure the Apple share by editing location at the bottom of the /etc/netatalk/AppleVolumes.default file (comment out the line with the home directory and add the actual mount location; add your username):



            #~/                "Home Directory"
            /mnt/backups/myMac "TimeMachine" allow:username options:tm,usedots,upriv


            (I'm not sure that options:usedots,upriv needs to be explicitly set but it works for me.)




          4. Restart the netatalk service:



            sudo service netatalk restart


          5. Make sure ports 548/tcp and 5353/udp are open in your firewall.



          On the Mac machine:





          1. Open the terminal and enter:



            defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1


          2. Reboot the computer.



          3. Mount the network share location by selecting the network share from the leftmost pane in a Finder window, or by selecting "Connect to server" from the Finder app's "Go" menu (or press +K) and enter the machine name or IP address of your Ubuntu machine:



            afp://123.456.789.123


            Use your Ubuntu user credentials to authenticate when prompted.




          4. Go to Time Machine preferences (accessible from "System preferences") and select "Change location", selecting to encrypt backups, and begin the backup setup process.




            • This will automatically create the sparsebundle file necessary for backups.



          5. After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺







          share|improve this answer


























          • brilliant tutorial!

            – maxisme
            Mar 13 '16 at 23:27











          • Stacks of thanks for your concise and well written tutorial!

            – fusion27
            Nov 18 '17 at 15:44






          • 1





            because it took me way too long to realize it, the "username" in step 3 is the actual user name, e.g. "daniel".

            – user2482876
            Jan 13 '18 at 16:18
















          7














          NOTE: this is now out of date. See linked question re: TimeMachine in High Sierra



          This is actually really straightforward. My solution below works for a single user, but can likely be easily adapted for multiple users.



          On the Ubuntu machine:




          1. Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at /mnt/backups in /etc/fstab, and you've created a subdirectory called myMac in this backup folder). Because this is a network share it actually doesn't matter what format the disk uses - it could be ext4, btrfs, etc.



          2. Install netatalk (open source AFP):



            sudo apt-get install netatalk



          3. Configure the Apple share by editing location at the bottom of the /etc/netatalk/AppleVolumes.default file (comment out the line with the home directory and add the actual mount location; add your username):



            #~/                "Home Directory"
            /mnt/backups/myMac "TimeMachine" allow:username options:tm,usedots,upriv


            (I'm not sure that options:usedots,upriv needs to be explicitly set but it works for me.)




          4. Restart the netatalk service:



            sudo service netatalk restart


          5. Make sure ports 548/tcp and 5353/udp are open in your firewall.



          On the Mac machine:





          1. Open the terminal and enter:



            defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1


          2. Reboot the computer.



          3. Mount the network share location by selecting the network share from the leftmost pane in a Finder window, or by selecting "Connect to server" from the Finder app's "Go" menu (or press +K) and enter the machine name or IP address of your Ubuntu machine:



            afp://123.456.789.123


            Use your Ubuntu user credentials to authenticate when prompted.




          4. Go to Time Machine preferences (accessible from "System preferences") and select "Change location", selecting to encrypt backups, and begin the backup setup process.




            • This will automatically create the sparsebundle file necessary for backups.



          5. After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺







          share|improve this answer


























          • brilliant tutorial!

            – maxisme
            Mar 13 '16 at 23:27











          • Stacks of thanks for your concise and well written tutorial!

            – fusion27
            Nov 18 '17 at 15:44






          • 1





            because it took me way too long to realize it, the "username" in step 3 is the actual user name, e.g. "daniel".

            – user2482876
            Jan 13 '18 at 16:18














          7












          7








          7







          NOTE: this is now out of date. See linked question re: TimeMachine in High Sierra



          This is actually really straightforward. My solution below works for a single user, but can likely be easily adapted for multiple users.



          On the Ubuntu machine:




          1. Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at /mnt/backups in /etc/fstab, and you've created a subdirectory called myMac in this backup folder). Because this is a network share it actually doesn't matter what format the disk uses - it could be ext4, btrfs, etc.



          2. Install netatalk (open source AFP):



            sudo apt-get install netatalk



          3. Configure the Apple share by editing location at the bottom of the /etc/netatalk/AppleVolumes.default file (comment out the line with the home directory and add the actual mount location; add your username):



            #~/                "Home Directory"
            /mnt/backups/myMac "TimeMachine" allow:username options:tm,usedots,upriv


            (I'm not sure that options:usedots,upriv needs to be explicitly set but it works for me.)




          4. Restart the netatalk service:



            sudo service netatalk restart


          5. Make sure ports 548/tcp and 5353/udp are open in your firewall.



          On the Mac machine:





          1. Open the terminal and enter:



            defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1


          2. Reboot the computer.



          3. Mount the network share location by selecting the network share from the leftmost pane in a Finder window, or by selecting "Connect to server" from the Finder app's "Go" menu (or press +K) and enter the machine name or IP address of your Ubuntu machine:



            afp://123.456.789.123


            Use your Ubuntu user credentials to authenticate when prompted.




          4. Go to Time Machine preferences (accessible from "System preferences") and select "Change location", selecting to encrypt backups, and begin the backup setup process.




            • This will automatically create the sparsebundle file necessary for backups.



          5. After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺







          share|improve this answer















          NOTE: this is now out of date. See linked question re: TimeMachine in High Sierra



          This is actually really straightforward. My solution below works for a single user, but can likely be easily adapted for multiple users.



          On the Ubuntu machine:




          1. Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at /mnt/backups in /etc/fstab, and you've created a subdirectory called myMac in this backup folder). Because this is a network share it actually doesn't matter what format the disk uses - it could be ext4, btrfs, etc.



          2. Install netatalk (open source AFP):



            sudo apt-get install netatalk



          3. Configure the Apple share by editing location at the bottom of the /etc/netatalk/AppleVolumes.default file (comment out the line with the home directory and add the actual mount location; add your username):



            #~/                "Home Directory"
            /mnt/backups/myMac "TimeMachine" allow:username options:tm,usedots,upriv


            (I'm not sure that options:usedots,upriv needs to be explicitly set but it works for me.)




          4. Restart the netatalk service:



            sudo service netatalk restart


          5. Make sure ports 548/tcp and 5353/udp are open in your firewall.



          On the Mac machine:





          1. Open the terminal and enter:



            defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1


          2. Reboot the computer.



          3. Mount the network share location by selecting the network share from the leftmost pane in a Finder window, or by selecting "Connect to server" from the Finder app's "Go" menu (or press +K) and enter the machine name or IP address of your Ubuntu machine:



            afp://123.456.789.123


            Use your Ubuntu user credentials to authenticate when prompted.




          4. Go to Time Machine preferences (accessible from "System preferences") and select "Change location", selecting to encrypt backups, and begin the backup setup process.




            • This will automatically create the sparsebundle file necessary for backups.



          5. After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 11 '18 at 21:43

























          answered Aug 26 '14 at 5:10









          amcamc

          4,67862746




          4,67862746













          • brilliant tutorial!

            – maxisme
            Mar 13 '16 at 23:27











          • Stacks of thanks for your concise and well written tutorial!

            – fusion27
            Nov 18 '17 at 15:44






          • 1





            because it took me way too long to realize it, the "username" in step 3 is the actual user name, e.g. "daniel".

            – user2482876
            Jan 13 '18 at 16:18



















          • brilliant tutorial!

            – maxisme
            Mar 13 '16 at 23:27











          • Stacks of thanks for your concise and well written tutorial!

            – fusion27
            Nov 18 '17 at 15:44






          • 1





            because it took me way too long to realize it, the "username" in step 3 is the actual user name, e.g. "daniel".

            – user2482876
            Jan 13 '18 at 16:18

















          brilliant tutorial!

          – maxisme
          Mar 13 '16 at 23:27





          brilliant tutorial!

          – maxisme
          Mar 13 '16 at 23:27













          Stacks of thanks for your concise and well written tutorial!

          – fusion27
          Nov 18 '17 at 15:44





          Stacks of thanks for your concise and well written tutorial!

          – fusion27
          Nov 18 '17 at 15:44




          1




          1





          because it took me way too long to realize it, the "username" in step 3 is the actual user name, e.g. "daniel".

          – user2482876
          Jan 13 '18 at 16:18





          because it took me way too long to realize it, the "username" in step 3 is the actual user name, e.g. "daniel".

          – user2482876
          Jan 13 '18 at 16:18


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f516134%2fuse-ubuntu-network-share-for-apple-timemachine-backups%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Questions related to Moebius Transform of Characteristic Function of the Primes

          List of scandals in India

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?