Manage NFS/SMB Mounts (/manage-mounts)
v1.0
·
Updated 4 days ago
Manage Mounts: /manage-mounts
/manage-mounts sets up NFS or SMB/CIFS mounts of your NAS shares on the local machine, lists them and unmounts them again. Without an argument it runs list first and asks what you want to do next.
Subcommands
| Call | Effect |
|---|---|
/manage-mounts list | shows current mounts to the NAS (read-only) and updates context/nas/<slug>/mounts/current.txt |
/manage-mounts mount <share> <local-path> | mounts a share |
/manage-mounts unmount <local-path> | unmounts a mount |
NFS or SMB?
When mounting, the command asks via a prompt whether to use NFS or SMB/CIFS and sets it up accordingly:
# NFS
sudo mount -t nfs <host>:/volume1/<share> <local-path>
# SMB/CIFS
sudo mount -t cifs //<host>/<share> <local-path> -o username=<user>
Share (^[a-zA-Z0-9_.-]+$) and target path (^/[^\s]+$) are validated; after mounting, success is verified and the snapshot is updated. mount and unmount are mutating actions, list is read-only.