Guide · UniFi Drive · UNAS
Back up a Mac to a UniFi NAS with rsync
UniFi Drive has its own rsync service, but it doesn't accept a backup sent from a Mac. It only works with machines that run rsync as a server (daemon mode), and a Mac doesn't. What does work is logging in to the UNAS as root over SSH. UniFi Drive installs rsync on the NAS, so the Mac backs up to it like to any Linux server. Ubiquiti doesn't document this route, and this page says where that matters.
01
What Ubiquiti supports, and what it does not
- Backing up from the UNAS to somewhere else: UniFi Drive does this itself, in Drive → Backup Tasks — to another UNAS, an SMB server or a cloud service.
- Copying from a server to the UNAS: a Drive backup task can fetch files from a server that runs rsync as a server (daemon mode, port 873).
- Sending files to the UNAS with rsync over SSH, the way a Mac does: Ubiquiti's troubleshooting article says Drive's rsync service doesn't support it. Such a connection may show the file list and then hang.
What's left is logging in as root over SSH. That skips Drive's rsync service entirely: the Mac connects to the Linux system underneath (Debian), and rsync runs there as root. It works. It also skips Drive's own users and permissions, which is why the cautions below matter.
02
Turn on SSH and check rsync
In UniFi OS, open Settings → Control Plane → Console → Advanced, turn on SSH, and set an SSH password. It is separate from the password of your UniFi account.
The user is root, the only user that can connect over SSH.
Check that rsync is there:
ssh root@<unas-address> rsync --versionOn UniFi Drive 4.4 this prints rsync 3.5.0, because UniFi Drive installs rsync itself. On older firmware, owners reported installing rsync by hand with
aptand losing it at the next update. If the command finds nothing, you are on such a version, and a manual install may not survive an update.
03
Where UniFi Drive keeps the files
Each drive, shared or personal, is a folder on the storage volume. Its files are in a .data folder inside it:
/volume/<volume-id>/.srv/.unifi-drive/<drive>/.data/The volume ID is a long string of letters and numbers. To list the drives on your UNAS:
ssh root@<unas-address> 'ls -d /volume/*/.srv/.unifi-drive/*/.data'- Back up into a folder of its own inside
.data, such as…/Shared_Drive/.data/Backups/macbook. The folders next to.data—.trashcanand.uploads— belong to UniFi Drive. Don't write there. - Check that others can open the files. Files copied as root may not belong to any UniFi Drive user, and Drive users may then be unable to open them. If other people will open the backup through UniFi Drive or SMB, try one file that way before relying on it.
- The folder layout has changed before — earlier versions used
/volume1— so check the path again after a major UniFi Drive update.
04
Keys and firmware updates
The key is stored on the UNAS in /root/.ssh/authorized_keys. On the UNAS we tested, the key folder created in May 2026 was still there after the update to UniFi OS 6.0.11. That is one device and one update, not a promise from Ubiquiti. After every firmware update, click Test connection in RSync Pro (or run ssh root@<unas-address> true), and check that rsync --version still answers.
05 · RSync Pro
Setting it up in RSync Pro
RSync Pro is a Mac app that runs rsync over SSH from a window, with saved setups, schedules and live sync. A UNAS is set up like any SSH server, with root as the user.
Create a sync task and set its destination to Remote. Enter the UNAS address and the user
root.Click Create Key, then Install Public Key, and type the SSH password from UniFi OS once. The app copies the key to the UNAS. Or open Setup guide and pick the server type: it shows where SSH is switched on, checks the connection, then creates the key and installs it.
Click Test connection. Then set the destination to a folder inside a drive's
.data— browse to it, or paste the path from the command above.Run it once by hand and open the result in UniFi Drive. Then turn on live sync, or set a schedule. Live sync and schedules come with the one-time unlock.
Leave mirror off. If you turn it on, run Simulation first, and point it at the backup folder, never at
.dataitself — a mirror there would delete everything else on the drive. The NAS guide explains mirror and copy.
Free for one sync task, run by hand. A one-time unlock adds live and scheduled sync, more sync tasks and Versions. No subscription, no account. Requires macOS 15 or later.
06
Limits worth knowing
- Root skips UniFi Drive's rules. Drive's storage limits and per-user permissions don't apply to what root writes, so choose the destination folder with care.
- Ubiquiti doesn't document this route. A firmware update could change the paths, the SSH settings or what is installed. Check after each one.
- Live sync goes one way, from the Mac to the UNAS. Changes made on the UNAS reach the Mac only when you sync in the other direction, by hand or on a schedule.
- A new file is copied in full. rsync can send only the changed parts of a file the UNAS already has. A new video or RAW file takes as long as any other copy.
07
Questions
Can I use UniFi Drive's own rsync service instead?
Not from a Mac. Drive's service only fetches files from a machine that runs rsync as a server (daemon mode), and a Mac doesn't. Ubiquiti's article also describes SSH connections failing against it.
Can a user other than root connect?
Not over SSH. UniFi Drive users can sign in to UniFi Drive and to SMB shares, but not to the command line.
Do I need to connect to the UNAS in Finder first?
No. rsync connects over SSH by itself. The drive doesn't need to be open in Finder.
Does it work away from home?
Yes, as long as the Mac can reach the UNAS's SSH port — over a VPN into your network, for example. That is safer than opening port 22 to the internet.
Sources
- Ubiquiti Help Center: Troubleshooting UNAS Backup Issues — daemon mode only (issue 13), and where SSH is switched on (issue 6).
- Tested on 8 November 2026 on a UNAS Pro 4 (UniFi OS 6.0.11, UniFi Drive 4.4.30): openrsync on macOS (protocol 29) to rsync 3.5.0 on the UNAS, over SSH as root.
- Earlier firmware, manual rsync installs and the
/volume1layout: the Ubiquiti Community thread UNAS Rsync Support?
A step no longer matches your UNAS? Write to support@bdtech.app and the page will be corrected.
Guides
Back up to a NAS, a remote Mac or a phone
-
Synology, TrueNAS and Unraid
What to turn on in Synology DSM 7, TrueNAS and Unraid so a Mac can back up to them, and the permission mistakes that stop a key from working.
-
A Mac with no fixed IP (Tailscale)
Reach a Mac at another home, behind CGNAT or on the road, through Tailscale. No port forwarding, nothing to set up on the router.
-
An Android phone (Termux)
Termux gives an Android phone an SSH server and rsync, so a Mac can back up to it on port 8022. No root needed.
-
Your backups on an iPhone
An iPhone can't receive an rsync backup. Back up to a NAS or another Mac, then open the folder in the Files app.
-
A Windows PC
Share a folder on the PC and back up to it from Finder, or run rsync inside WSL for backups over the internet.