Version 3.12.1

3.6.5. FTP/FTPS

To use storage such as FTP/FTPS to provide backups, do the following.

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

Example for connecting to FTPS storage on 192.168.0.1 server, in the storage_connects block of nxs-backup.conf.

storage_connects:
- name: ftp_test
  ftp_params:
    host: 192.168.0.1
    port: 990
    user: ftp_user
    password: ENV:FTP_USER_PASSWORD
    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: ftp_test
  backup_path: /databases/redis
  retention:
    days: 10
    weeks: 0
    months: 6

`ftp_params` reference for nxs-backup.conf:

ftp_params: map
  # FTP host 
  host: string # Required
  # FTP port(
  port: int # Default: 21
  # FTP user name
  user: string # Required
  # FTP user password
  password: string # Required
  # FTP connection timeout seconds
  connection_timeout: int # Default: 10
  # Count of FTP connections opens to sever
  connect_count: int # Default: 5