Build Mac backup server with Linux, pseudo TimeCapsule
Build Mac backup server with Linux, pseudo TimeCapsule

Time Machine needs to be used with Mac and external hard disk or AirPort Time Capsule (purchased separately). As long as you connect the hard disk and assign it to Time Machine, you will never worry again. Time Machine automatically backs up all contents of the Mac, including system files, applications, accounts, preferences, music, photos, movies, and documents. The difference between Time Machine and other backup software is that it can not only backup all files, but also remember the status of the system on any day, so you can revisit the Mac in a certain period of time in the past.


Last week, it was said that we used Time Capsule and Apple TV3, MacBook Air and iPad to set up Apple streaming home sharing entertainment. However, most users' pursuit of Time Capsule is simple and crude, such as wireless backup of Mac. However, the price of Time Capsule can still dampen the enthusiasm of many people.

Here is a method to add Time Capsule service to a Linux PC and turn it into a Time Machine backup server.

get ready:
1. One Linux PC (there are many people with multiple computers)
2 Install Netatalk
3 Install Avahi

Installation:
Ubuntu 13.04 is used here, so take Ubuntu as an example, and check other Linux.

1 Install Netatalk. Netatalk is an open source Apple Talk communication protocol group, which allows Unix like systems to be file servers, print servers, etc. for Macs.

Use the following command to install:
sudo apt-get install netatalk

 

2. Install Avahi. Avahi is installed by default in Ubuntu. Do not install Avahi again if you use Ubuntu. Avahi is an open source implementation of Apple's Zeroconf protocol. He can help Macs discover Linux machines and access them.

 

to configure:
Configure Netatalk and enter:
sudo gedit /etc/netatalk/AppleVolumes.default
Comment out the line~/"Home Directory" with "#" to prevent the Home Directory from being confused as AFP.
Finally, add a line of the directory you want to store, and add "options: tm" to this directory, so that netatalk can be used as a Time Machine server.

 

Configure Avahi. Since Ubuntu already contains Avahi daemon, configure it directly here. Terminal input:
Sudo touch file/etc/avahi/services/afpd.service to create a configuration file, and then enter:
Sudo gedit/etc/avahi/services/afpd.service Open afpd.service and write:
%h
_afpovertcp._ tcp
five hundred and forty-eight
_device-info._ tcp
zero
model=Xserve

Save and exit.

 

For security reasons, it is better to restart the following two services, and enter:
sudo service netatalk restart
sudo service avahi-deamon restart

 

At this point, the Linux side is configured. Now go back to the Mac and connect the Linux disk to see if it can be accessed.
First remember the Linux device name, such as H67MA-D2H-B3 here.

 

Open Finder in Mac, press Command+K to open "Connect to Server", click "Browse" to find H67MA-D2H-B3, the icon is different from other PCs, because of the protocol relationship, it will be identified as MAC.

 

Confirm and connect, enter the account name and password on the Linux side to log in, and newer OS X can check "Remember this password in my key string" for future access.

 

It is time to open Time Machine and select disk backup. After opening Time Machine, select disk as the file name previously set on the Linux side, such as the TimeCapsule folder here. In the following figure, there are two disks that can be used for Time Machine backup, H67MA-D2H-B3 is a self built time capsule on Linux, while the one on the Air Port Time Capsule is a real time capsule. Choose H67MA-D2H-B3 to try the effect first.

 

After the disk is selected, the backup disk of Time Machine is set, and the countdown starts. In the principle of testing quickly, it is better to click a backup immediately. OK, success. The first backup takes too long, so it won't wait for it to complete the work. The subsequent incremental backup is still quite blocked.

 

We have successfully completed the task. If you are interested in children's shoes with multiple machines in hand, you can try to find some more interesting ways to play. The simplest way to build them is here.

 

Share:
Igao7 fork
edit
Back to Mars! (…………%……&%G2&¥(@#*&)&%*————%&*¥)
Share Weibo Share WeChat
 Aigoji WeChat

Aigoji WeChat

 WeChat

WeChat

Recommended products

Sorry, the product you are looking for is not available in the product library

on trial