Skip to content

Conversation

@Scottmg1
Copy link

Added NFS as a supported archiving method (ARCHIVE_SYSTEM=nfs). CIFS was slow for me, and since the UniFi UNAS Pro supports NFS natively, this was as an alternative for me.

What's changed:

  • Created a new nfs_archive module based on the existing CIFS logic.
  • Forced vers=3 for the mount command and added --no-o --no-g to the rsync flags. This fixed permission errors I was getting where the NAS wouldn't let the Pi change file ownership (root squashing).
  • Updated the setup scripts and docs to recognize the new option.

Testing:
Archiving is tested and working perfectly on my UniFi UNAS Pro. It connects, archives, and cleans up without issues.
Music Sync: Ported the music syncing logic over from the CIFS module, but I haven't physically tested that part since I don't use the music feature myself. It should work, but heads up that it's unverified.

Checks port 2049 for NFS servers.
Handles nfs-common install and fstab generation using vers=3.
Uses rsync with --no-o --no-g to fix NFS permission errors.
Configures the loop to treat NFS as a mountable filesystem.
Added example configuration block for NFS users.
Changed text from "192.168.1.10" to "hostname_or_ip" to reduce confusion on less tech savvy users and match the CIFS format.
@Scottmg1
Copy link
Author

@marcone Ready for review.

@Scottmg1
Copy link
Author

Personally have been running this setup for the past few weeks. No issues at all so far.

@oaquique (Wlfrk in Discord) has tested the music syncing and it is working fine for him.

@marcone marcone merged commit 55c4f12 into marcone:main-dev Dec 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants