brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: SMB export Yes (Time Machine) turns an Unraid share into a Mac backup disk

Unraid
~/tips/tip-unraid-time-machine-share-smb-export

SMB export: Yes (Time Machine)

Use an Unraid user share as the network backup disk for Time Machine.

A Mac in the house means a Time Machine disk somewhere, and a USB drive on a desk is the version that never gets plugged in. Unraid can act as that disk over SMB with a share setting most people scroll past.

First check the SMB service itself under Settings > SMB. Set Enable SMB to Yes (you have to stop the array to change it) and set Enhanced macOS interoperability to Yes. Then go to Shares, add a share and use these values from the docs:

Minimum free space:       1
Included disk(s):         the array disk(s) for backups
Enable copy-on-write:     Auto
SMB export:               Yes (Time Machine)
Time Machine volume size: your maximum, or leave unset

The 1 means 1 KB, and the docs say it prevents Time Machine from failing when disks approach capacity. If you’d rather keep a normal minimum free space, apply the share first, open it again and set the volume size below the calculated minimum free space value that then appears.

On the Mac you connect in Finder with Command + K and an address like smb://tower/TimeMachine, log in with an Unraid user that has access to the share, and then pick that share in the Time Machine settings under Add Backup Disk. I’d tick Encrypt backups there as well, since the share sits on a box that also runs a pile of containers. The first backup takes a while and the later ones are incremental.

The caveat is macOS Sequoia. The docs mention users reporting intermittent problems with Time Machine on network shares there, and they suggest the Time Machine Docker container from Community Applications as the alternative if your backups keep failing.

Further reading: Unraid docs: Apple Time Machine, Unraid docs: Shares

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link