SMB / CIFS
Keep your backups on a shared folder on Windows, a NAS, or any SMB / CIFS server.
This page is about a share as the destination of your backups. To back up the files that are on a share, see Back up a network share.
1. Set up the storage
- On the file server or NAS, create a shared folder for backups.
- Create (or choose) a user account with read and write access to that share, and note its user name and password.
- Note the share’s address, for example
\\nas\backups\nyxor//nas/backups/nyx.
2. Connect it in Nyx Backup
New backup set > destination SMB / CIFS, then enter the share’s address from step 3. How the computer signs in to the share depends on the system.
Windows
- To sign in with the account from step 2, put its user name in the address -
smb://backupuser@nas/backups/nyx- and its password in SMB password. - Or leave the password empty to sign in with this computer’s own account. On a Windows domain that uses Kerberos (or a smart card) automatically.
- Windows allows only one sign-in per computer name. If a backup destination and a network share source on the same computer use different accounts, Nyx Backup connects the second through the computer’s network address. If you typed the address as an IP number, use the computer’s name instead, or the same account for both.
Mac and Linux
Nyx Backup does not connect to the share itself here. The share must already be mounted on this computer whenever a backup runs:
- Mac: in Finder choose Go, then Connect to Server, and connect to
smb://nas/backups. In Nyx Backup, enter where it is mounted (for example/Volumes/backups) as the Local mount path. - Linux: mount it with
/etc/fstabor autofs (thecifstype, from thecifs-utilspackage), so that it is there after a restart. Nyx Backup finds the mounted share by its address.
The password field is not used on a Mac or Linux: the mount signs in. If the share is not mounted when a backup runs, the backup stops with an error. It never writes into the empty folder underneath, which is on this computer’s own disk.
3. Finish
Once Test connection succeeds, set a schedule and retention, save the set, and choose Run now. Nyx Backup encrypts everything on your machine before upload, so this destination only ever holds encrypted blobs. Give each machine its own folder - see Connecting storage.
Backups on an SMB share also get parity by default, so Nyx Backup can repair its own data if the disk underneath damages a few bytes.
Tip: use a dedicated share and account for backups, and keep the computer or NAS that holds the share on when backups are scheduled.