Version 3.12.0

3.6.3. SMB/CIFS

To use storage such as SMB/CIFS to provide backups, do the following.

1. Add a set consisting of a unique connection name and a set of connection parameters of type smb_params to the storage_connects main config block.

Example for connecting to SMB storage on 192.168.0.1 server with share name `smb_share`, in the storage_connects block of nxs-backup.conf.

storage_connects:
- name: smb_test
  smb_params:
    host: 192.168.0.1
    port: 445
    user: smb_user
    password: ENV:SMB_USER_PASSWORD
    share: smb_share
    connection_timeout: 10

2. Add backup storage options for the previously specified storage name to the storages_options block in the job parameters.

storages_options:
- storage_name: smb_test
  backup_path: /databases/postgresql
  retention:
    days: 10
    weeks: 0
    months: 6

`smb_params` reference for nxs-backup.conf:

smb_params: map
  # SMB host
  host: string # Required
  # SMB port
  port: int # Default: 445
  # SMB user name 
  user: string # Default: "Guest"
  # SMB user password
  password: string # Optional
  # SMB share name
  share: string # Requred
  # SMB domain
  domain: string # Default: “”
  # SSH connection timeout seconds
  connection_timeout: int # Default: 10