Use Ubuntu10.10 to build a TimeMachine Backup Server

Source: Internet
Author: User
The AppleMacOSX system comes with an easy-to-use backup software TimeMachine. "TimeMachine automatically saves the latest versions of all content in Mac, including photos, music, videos, and documents, applications and settings. As long as necessary, you can easily roll back time and restore any files .", To use TimeMachine, you must use an external hard disk or purchase an AppleTimeCapsule for wireless network backup. Because Time Apple Mac OSX system comes with a simple and easy-to-use backup software Time Machine, "Time Machine can automatically save the latest version of all content in Mac, including photos, music, videos, documents, applications, and settings. As long as necessary, you can easily roll back time and restore any files .", To use Time Machine, you must use an external hard disk or purchase an Apple Time Capsule for wireless network backup. Because Time Machine can implement Incremental Backup every hour (that is, only backup changed documents), if you use MacBook (pro/air) and the documents change frequently, the best solution should be to allow the system to automatically back up data in a timely manner through the network.

The following describes a simple method. You only need to set up Ubuntu 10 to turn your computer into a Time Machine backup server. (PS: in theory, all Linux systems can be implemented. Because I use Ubuntu 10.10, I will only introduce how to set this system)

1. Install Netatalk

Netatalk is a free and open-source AppleTalk communication protocol. Linux or BSD can act as the Mac file server (AppleShare file server, aka AFP), AppleTalk routing, and printer server.

Run the following command to install netatalk:

Sudo apt-get install netatalk

2. Set the Time Machine backup file storage location

You can find more partitions in the remaining space of the system, and create a folder in it as the storage location of the backup file. For example, my system is/backup/TimeMachine, write the path to the configuration file/etc/netatak/AppleVolumes. default:

#~ /"Home Directory"
/Backup/TimeMachine "TimeMachine" options: tm

It is best to comment out the first line because it will use the Home directory of each user as the AFP directory, which will disturb the files in our Home directory. The key point is "options: tm". This option is actually used to make netatalk act as a Time Machine server.

3. install and configure Avahi

Avahi is an open-source implementation of Apple's Zeroconf protocol. It implements features similar to Bonjour, which allows you to automatically discover your Ubuntu machine in Mac systems. In Ubuntu 10.10, avahi-daemon is installed by default, so we only need to configure it. Create the file/etc/avahi/services/afpd. service and write the following content.


% H

_ Afpovertcp. _ tcp
548


_ Device-info. _ tcp
0
Model = Xserve

4. Restart netatalk and avahi

Sudo service netatalk restart
Sudo service avahi-daemon restart (it seems that you can do it without restarting)

5. settings for Mac OSX

Choose "Finder"> "go"> "connect to server ..." -> "Browse", www.linuxidc.com, you should see your Ubuntu computer now. After logging in with the account and password in the Ubuntu system, you will see the "TimeMachine" folder, try to create a folder in to test whether you have the write permission. If you cannot create a folder, you need to return to Ubuntu and add the write permission to the "TimeMachine" folder.

Open a terminal (in "application"> "utility"> "terminal") on the Mac and execute this command to enable the Time Machine to use the network disk as the backup destination location:
Defaults write com. apple. systempreferences TMShowUnsupportedNetworkVolumes 1

Choose "system preference settings"> "Time Machine"> "open"> "select disk" and select the "Time Machine" folder.

Now all settings are complete. Test the settings.

Click the Time Machine icon on the menu bar and then click "Back up now". If there is no problem, you should back up the file. It takes a long Time to back up the file for the first Time, so it is best to connect to the AC and set the power saving period to never go to sleep.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.