Accessing Windows network shares and UNC paths


GBM can back up Windows network paths, and back up to Windows network storage (SMB / CIFS). However, because GBM runs as a service user, there are some issues with authentication to be aware of.


Please note that if you are using GBM to back up data from a network device, you should prefer to install GBM directly on the device instead of backing it up over the network. This will also significantly improve performance, as less data needs to be transferred over the LAN.


Mapped network drives 


On Windows, each logged-on user session has its own set of mapped network drives. The service user account is unlikely to have any mapped drives. If you see error messages like WARNING Missing: 'Z:\', this is probably the reason. You can work around this by using a UNC path instead.

The GBM desktop application will automatically convert mapped network drives to their UNC path equivalents.


Authentication 


If the UNC share requires authentication, the service user account is probably not logged-in to the UNC share. If you see error messages like WARNING Lstat: CreateFile \\?\UNC\...: Access is denied., this is probably the reason.

GBM has built-in options for setting Windows network authentication credentials.

For versions of GBM prior to 18.6.5, workarounds are available. Ranked in order of preference:

  • You may be able to install GBM on the network device. If the network device is a NAS box (e.g. Synology / QNAP), GBM can be installed on Linux x86_64 NAS boxes.

  • If you are storing data on a network share, you can also work around this issue by switching from Windows network shares (SMB) to a network protocol that has built-in credential support. For instance, a S3-compatible server (e.g. the free Minio server) or an SFTP server.

  • In GBM, you can work around this issue by adding net use \\HOST\SHARE /user:USERNAME PASSWORD as a "Before" command to the backup job.

    • If you are storing data on a UNC path, you can add this "Before" command on the Storage Vault instead of on the Protected Item. This will ensure it is run for all backup jobs going to that Storage Vault.
  • You can work around this issue in GBM by changing the Windows Service to use a different user account.

    • For GBM, this is the Gigasoft Backup (delegate service) service.
    • If you are using GBM on a Windows Server machine that is acting as the Domain Controller, you must choose a domain account.