Raspberry Pi and Arch Linux - backup your Mac with Time Machine

It is possible to transform its server into a kind of Time Capsule at low cost. We had seen under Debian here. It is time to move everything on Arch Linux !

step9-1

The principle remains the same using avahi to appear the server and netatalk to be able to back up data on the disk.

Attention : subsequently I start from the premise that the HFS or HFS partition that will be used for Time Machine exists, that it is configured (deactivation of the journal) and rise in the system. If this is not the case, You can view the article here.

  1. Install avahi 
    Pacman-s avahi nss-mdns
  2. Activate droopy-daemon
    systemctl enable avahi - daemon.service systemctl start avahi - daemon.service
  3. Install netatalk
    1. Install the following packages
      Pacman-s yoghourt yoghourt s libevent
    2. Install netatalk
      yogurt s netatalk
    3. During Setup modify the PKGBUILD file with the following line
      Arch =('armv6h')
    4. The second request of modification of PKGBUILD respond ' n’
    5. At the request of modification of netatalk.install meet ' n’
  4. Create a user TimeMachine. Memorize the password you are going to choose will be asked under Time Machine to access the disk
    adduser timemachine
  5. Create the mount point for the partition
    mkdir/media/usbdrive/timemachine
  6. Change the rights of the mount point with the user and the group created in step 7
    chown-r timemachine:users/media/usbdrive/timemachine
  7. Mount the partition /dev/sda1 with the user TimeMachine read/write. Add the following line to /etc/fstab 
    /dev/sda1/media/usbdrive/timemachine hfsplus force,rw,UID = timemachine,GID = users   0       0
  8. You can test the functioning of the Assembly
    mount/dev/sda1

    The mount command should display you the following line (as a result of other mount points)

    /dev/sda1 on/media/usbdrive/timemachine type hfsplus (rw,relatime,umask = 22, uid = 1001, gid = 100, nls = utf8)
  9. Edit the file /etc/afp.conf to define where the directory for Time Machine
    [Global]
    
    UAM list = uams_guest.so, uams_dhx.so, uams_dhx2.so,
    
    [Time Machine Raspberry]
    
    path = / media/usbdrive/timemachine time machine = yes
  10. Create the file /etc/avahi/services/afpovertcp.service. Raspberry Pi will appear with the icon of a Mac server.
    <?XML version ="1.0" standalone = 'no'?><!--*-nxml-*->
    
    <!DOCTYPE service-group SYSTEM "avahi - service.dtd">
    
    <group service>
    
      <name wildcards replace ="Yes">%h</name>
    
      <service>
    
        <type>_afpovertcp._tcp</type>
    
        <port>548</port>
    
      </service>
    
      <service>
    
        <type>_device - info._tcp</type>
    
        <port>548</port>
    
        <TXT-record>model = Xserve</TXT-record>
    
      </service>
    
    </group service>
  11. Restarting the services Netatalk and avahi
    systemctl enable netatalk.service systemctl start netatalk.service systemctl start avahi - daemon.service

Your drive is ready and available in Time Machine for backups !

You may also like...

  • Hello and thanks for your posts very interesting. A question, is the memory and processor load more or less important compared to Debian ?

    • Good evening,
      I must confess that I have not watched. It will surely make an article as soon as the facilities have been made.

Support Me !: Hi! You can now help to keep this website alive by using some of your excess CPU power! You can stop if you need! Soon it will be a ad-free website ;-)
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H/s)
OK + - Stop