To use storage such as NFS to provide backups, do the following.
1. Add a set consisting of a unique connection name and a set of connection parameters of type nfs_params to the storage_connects main config block.
Example for connecting to NFS storage on 192.168.0.1 server with backups/directory, in the storage_connects block of nxs-backup.conf.
storage_connects:
- name: nfs_test
nfs_params:
host: 192.168.0.1
target: backups
2. Add backup storage options for the previously specified storage name to the storages_options block in the job parameters.
storages_options:
- storage_name: nfs_test
backup_path: /databases/mongodb
retention:
days: 10
weeks: 0
months: 6
`nfs_params` reference for nxs-backup.conf:
nfs_params: map
# NFS host
host: string # Required
# Path on NFS server where backups will be stored
target: string # Required
# UID of NFS server user
UID: int # Default: 0
# GID of NFS server user
GID: int # Default: 0