TrueNAS and NFS/SMB

I recently installed TrueNAS and setup an NFS share for my Linux backups and an SMB share for my wife’s Mac backups. Here are some notes that may be of use to others or my future self 😄

NFS

My use case is to mount the NFS share on demand, backup my home directory, then immediately unmount.

Under Datasets:

Under Shares -> Unix (NFS) Shares:

Under System Settings -> Services -> NFS (these should be set by default):

Other:

cd /mnt/Seagate4TB/nfsshare
mkdir home-backup
chown ian home-backup

NFS client

truenas.lan:/mnt/Seagate4TB/nfsshare /mnt	nfs4	noauto,defaults

where /mnt/Seagate4TB/nfsshare/ is the NFS root.

ian	ALL=(ALL)	NOPASSWD: /usr/bin/mount /mnt, /usr/bin/umount /mnt

Now user ‘ian’ should be able to write into /mnt/home-backup.

SMB

My use case is to enable Time Machine backups from my wife’s Macbook Pro.

Under Datasets:

Under Shares -> Windows (SMB) Shares:

Mac

Done!