Use Ubuntu network share for Apple TimeMachine backups?
I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?
backup
add a comment |
I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?
backup
add a comment |
I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?
backup
I want to backup my Mac to a network drive mounted on my Ubuntu computer. How do I set this up?
backup
backup
edited Sep 8 '17 at 19:15
amc
asked Aug 26 '14 at 5:10
amcamc
4,67862746
4,67862746
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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:
Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at
/mnt/backupsin/etc/fstab, and you've created a subdirectory calledmyMacin 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.
Install
netatalk(open source AFP):
sudo apt-get install netatalk
Configure the Apple share by editing location at the bottom of the
/etc/netatalk/AppleVolumes.defaultfile (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,uprivneeds to be explicitly set but it works for me.)
Restart the
netatalkservice:
sudo service netatalk restart
Make sure ports 548/tcp and 5353/udp are open in your firewall.
On the Mac machine:
Open the terminal and enter:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Reboot the computer.
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.
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.
After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at
/mnt/backupsin/etc/fstab, and you've created a subdirectory calledmyMacin 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.
Install
netatalk(open source AFP):
sudo apt-get install netatalk
Configure the Apple share by editing location at the bottom of the
/etc/netatalk/AppleVolumes.defaultfile (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,uprivneeds to be explicitly set but it works for me.)
Restart the
netatalkservice:
sudo service netatalk restart
Make sure ports 548/tcp and 5353/udp are open in your firewall.
On the Mac machine:
Open the terminal and enter:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Reboot the computer.
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.
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.
After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺
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
add a comment |
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:
Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at
/mnt/backupsin/etc/fstab, and you've created a subdirectory calledmyMacin 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.
Install
netatalk(open source AFP):
sudo apt-get install netatalk
Configure the Apple share by editing location at the bottom of the
/etc/netatalk/AppleVolumes.defaultfile (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,uprivneeds to be explicitly set but it works for me.)
Restart the
netatalkservice:
sudo service netatalk restart
Make sure ports 548/tcp and 5353/udp are open in your firewall.
On the Mac machine:
Open the terminal and enter:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Reboot the computer.
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.
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.
After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺
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
add a comment |
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:
Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at
/mnt/backupsin/etc/fstab, and you've created a subdirectory calledmyMacin 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.
Install
netatalk(open source AFP):
sudo apt-get install netatalk
Configure the Apple share by editing location at the bottom of the
/etc/netatalk/AppleVolumes.defaultfile (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,uprivneeds to be explicitly set but it works for me.)
Restart the
netatalkservice:
sudo service netatalk restart
Make sure ports 548/tcp and 5353/udp are open in your firewall.
On the Mac machine:
Open the terminal and enter:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Reboot the computer.
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.
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.
After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺
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:
Make sure the directory to be shared is mounted and owned by your user (e.g., your backup hard drive is mounted at
/mnt/backupsin/etc/fstab, and you've created a subdirectory calledmyMacin 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.
Install
netatalk(open source AFP):
sudo apt-get install netatalk
Configure the Apple share by editing location at the bottom of the
/etc/netatalk/AppleVolumes.defaultfile (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,uprivneeds to be explicitly set but it works for me.)
Restart the
netatalkservice:
sudo service netatalk restart
Make sure ports 548/tcp and 5353/udp are open in your firewall.
On the Mac machine:
Open the terminal and enter:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Reboot the computer.
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.
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.
After setup is complete, wait ~90 seconds for backup to automatically begin, and even longer for it to complete ☺
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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