Ubuntu 12.04:
- Download, compile (with the password support), and install netatalk package:
- Option Two: http://www.fiz-ix.com/2012/12/apple-filing-protocol-afp-file-server-on-ubuntu-using-netatalk/
- Create a user that should be used by the time machine
- Create a backup volume (in my case, it was a Volume provided by Openstack)
- Configure the netatalk server:
- See Step 2 from http://pwntr.com/2012/03/03/easy-mac-os-x-lion-10-7-time-machine-backup-using-an-ubuntu-linux-server-11-10-12-04-lts-and-up/
- Create a tunnel:
- ssh -A -L 8548:127.0.0.1:548 ubuntu@<SERVER IP>
MacOS:
- Connect: Go to Server, select 127.0.0.1:8548
- Create a sparse image, see: http://apple.stackexchange.com/a/46836 to ensure that the backup is encrypted
- Check the KeyChain for the 127.0.0.1:8548 after http://feed42.blogspot.de/2012/06/time-machine-backups-to-afp-volume-over.html
- Add the Volume to TimeMachine, run the backup, and cancel it
- The last step, convert the time machine backup image to encrypted image (DO NOT COPY OVER THE TIME MACHINE FILES from the old image): http://www.cognizo.com/2012/04/encrypted-network-backups-with-os-x-time-machine/
- Run the backup