It will ask to set a password for your newly created user. In my case the device was /dev/sdb1 and the UUID we’re looking for was the one below: Determine the device ID (UUID) of your USB drive Also we should get decent speeds as we also get a 1GBit/s wired connection with the Pi 4. Connect Hard drive to USB 3.0 portĪs the Raspberry Pi 4 ships with 2x USB 3.0 ports we can connect an external hard drive as our disk space for backing up data. The Avahi daemon is used for Apples “Bonjour” mDNS protocol that our Raspberry Pi server is automatically discoverable within the network.
We’re going to first install Samba (for SMB) which is a very popular Open Source file sharing protocol which is officially supported by Time Machine for backing up data over a network. Make sure your Raspberry Pi is running on the latest software. If you have a Raspberry Pi (or two) lying around at your place like me, this tutorial comes in handy to create a cheap and speedy backup solution.
Time Machine is built into the system of macOS and I’m using it since the early days of Mac OS X Leopard. Mudge’s Using a Raspberry Pi for Time Machine - uses ext4 and smb as a protocol, and other steps look good but I couldn’t get the macOS Time Machine service to find it Gregology’s Raspberry Pi Time Machine - this guide is most similar to this one, but uses ext4 instead of hfsplus Similar guides to try if this fails (this guide is a mashup of these two, with some sprinking of edited commands) Ensure above permissions are set, and also verify disk integrity - sudo fsck.hfsplus -f /dev/sda1 (or simply re-format).Alternatively, delete the above mount-point directory ( sudo rmdir /media/pi/TimeMachine ) and reboot (this fixed an issue for me that chmod did not).Set drive permissions (such as sudo chmod -R 777 /media/pi/TimeMachine ).It would be wise to encrypt your backup when macOS asks you here, since it will be plainly readable on the external drive otherwise.You’ll be prompted to log in again with your pi user.Go to System Preferences > Time Machine.