Another post on How to TimeMachine on a Raspberrypi. This one is simple, don’t provide complex install and rely more on the user.

The first step is to install and setup netatalk :

$ sudo apt-get install netatalk

Create the mount folder to receive TimeMachine

$ mkdir /mnt/TimeMachine

After a simple edit is needed :

$ nano /etc/netatalk/AppleVolumes.default

replace to this

# By default all users have access to their home directories.
~/                      "Home Directory"
/mnt/TimeMachine "TimePiWhite" allow:pi cnidscheme:dbd options:upriv,usedots,tm volsizelimit:1000000
# End of File

It allow all users to access to their home folder and user pi to access to mnt/TimaMachine (our mount point for the TimeMachine disk)

Now you need a disk with enough storage (e.g. 500Go is you have a 500Go HDD) formatted in hfsplus journaled (standard format of Apple).

Plug your HDD to the Raspberrypi (maybe with a USB self-powered hub).

Install hfsprogs to give compatibility to hfsplus journaled

$ sudo apt-get install hfsprogs

Mount your drive

$ sudo blkid
/dev/mmcblk0: PTUUID="34e4b02c" PTTYPE="dos"
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="DF8E-C7AE" TYPE="vfat" PARTUUID="34e4b02c-01"
/dev/mmcblk0p2: UUID="cea0b7ae-2fbc-4f01-8884-3cb5884c8bb7" TYPE="ext4" PARTUUID="34e4b02c-02"
/dev/sda1: LABEL="EFI" UUID="17ED" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="a38-eaf7dbf"
/dev/sda2: UUID="a691bfe4-e8407f23ffef" LABEL="Untitled" TYPE="hfsplus" PARTLABEL="Untitled" PARTUUID="89be-e8ed3d7b1fe4"
$ sudo mount -t hfsplus -o force,rw /dev/sda2 /mnt/TimeMachine/

Now connect from your mac

Finder > Go > Gotoserver > afp://192.168.1.44

Enter user and password of rapsberrypi, chosse time machine volume.

Now you can select the disk from your time machine interface 🙂