Version 3.12.1

3.6.6. WebDav

To use storage such as WebDav to provide backups, do the following.

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

Example for connecting to WebDav storage on https://webdav.test.local, in the storage_connects block of nxs-backup.conf.

storage_connects:
- name: webdav_test
  webdav_params:
    url: https://webdav.test.local
    username: webdav_user
    password: ENV:WEBDAV_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: webdav_test
  backup_path: /databases/mysql
  retention:
    days: 5
    weeks: 0
    months: 2

`webdav_params` reference for nxs-backup.conf:

webdav_params: map
  # WebDav URL
  url: string # Required
  # WebDav user name
  username: string # Optional
  # WebDav user password
  password: string # Optional
  # WebDav OAuth token
  oauth_token: string # Optional
  # WebDav connection timeout second
  connection_timeout: int # Default: 10