Gisted from https://github.com/mr-bt/raspberrypi-timemachine.
The following step are the ones that enable Time Machine backups with Raspberry Pi plus a bit of polishing to my taste.
I had a hard-drive serving as Time Machine disk. However, I couldn't mount the disk due to Apple Core Storage: