Add a backup destination
This function adds a backup destination.
Query parameters
The application key's name.
Note:
This parameter is only valid for the Backblaze backup type.
The application key ID that authenticates the Backblaze B2 account.
Note:
This parameter is only valid for the Backblaze backup type.
The authorization type.
- password
- key
Note:
This parameter is only valid for the following backup types:
- SFTP
- Rsync
The Amazon S3™ Access Key ID.
Note:
This parameter is only valid for the following backup types:
- AmazonS3
- S3Compatible
The Amazon S3™ bucket.
Note:
This parameter is only valid for the following backup types:
- AmazonS3
- S3Compatible
The bucket's ID string.
Note:
This parameter is only valid for the Backblaze backup type.
The bucket's name.
Note:
This parameter is only valid for the Backblaze backup type.
The Google Drive client ID.
Note:
This parameter is only valid for the GoogleDrive backup type.
The Google Drive client secret.
Note:
This parameter is only valid for the GoogleDrive backup type.
Whether to disable the backup destination.
- 1 — Disable the backup destination.
- 0 — Enable the backup destination.
The remote server's hostname.
Note:
This parameter is only valid for the following backup types:
- Custom
- FTP
- SFTP
- Rsync
- WebDAV
- S3Compatible
The backup destination's name.
The remote server account's password or secret access key.
Note:
This parameter is only valid for the following backup types:
- AmazonS3
- Custom
- FTP
- SFTP
- Rsync
- WebDAV
- S3Compatible
The absolute file path to the user-supplied transport solution script.
Note:
This parameter is only valid for the Custom backup type.
The type of backup destination.
- Custom
- FTP
- Local
- SFTP
- WebDAV
- AmazonS3
- Rsync
- GoogleDrive
- S3Compatible
- Backblaze
Note:
This value determines which parameters you can use with the function.
Warning:
Use any of these encrypted connections to transfer system backup files:
- Amazon S3™
- Backblaze
- GoogleDrive
- Rsync
- S3 Compatible
- SFTP
- WebDAV with SSL enabled
The remote server account's username.
Note:
This parameter is only valid for the following backup types:
- Custom
- FTP
- SFTP
- Rsync
- WebDAV
The path to the backups directory on the remote server.
Note:
This parameter is only valid for the following backup types:
- AmazonS3
- GoogleDrive
- S3Compatible
Whether the path is mounted.
- 1 — The path is mounted.
- 0 — The path is not mounted.
Note:
This parameter is only valid for the Local backup type.
Whether to fail the backup attempt if the mount fails.
- 1 — Fail the backup attempt.
- 0 — Do not fail the backup attempt.
Note:
This parameter is only valid for the Local backup type.
Whether to use this transport only for logs.
- 1 — This destination will be skipped for regular backups.
- 0 — Both log and regular backups will be uploaded.
This setting defaults to 0. The only time log files get their own backup is via scripts/remote_log_transfer
Whether to use passive FTP.
- 1 — Use passive FTP.
- 0 — Use active FTP.
Note:
This parameter is only valid for the FTP backup type.
The private key file's passphrase, if the authtype parameter is the key value.
Note:
This parameter is only valid for the following backup types:
- SFTP
- Rsync
The path to the backups directory on the remote server.
- This parameter is required for the Local backup type.
- If you do not use this parameter, the system will not set a value.
Note:
This parameter is only valid for the following backup types:
- Backblaze
- Custom
- Local
- FTP
- SFTP
- Rsync
- WebDAV
The TCP port to use.
Note:
- This parameter defaults to the standard port used by the queried backup type parameter.
- This parameter is only valid for the following backup types:
- FTP
- SFTP
- Rsync
- WebDAV
The file path to the private key file, if the authtype parameter is the key value.
Note:
This parameter is only valid for the following backup types:
- SFTP
- Rsync
Whether to use SSL.
- 1 — Use SSL.
- 0 — Do not use SSL.
Note:
This parameter is only valid for the WebDAV backup type.
The session timeout, measured in seconds.
Note:
- This parameter is not valid for the Local backup type parameter.
- The default value depends on the type parameter's value.
Whether to upload system backups.
- 1 — Upload system backups.
- 0 — Do not upload system backups.
Response
HTTP Request was successful.
Example response
{
"data": {
"id": "PhAxIoLSdIkCI40q9vWS4BYy"
},
"metadata": {
"command": "backup_destination_add",
"reason": "OK",
"result": 1,
"version": 1
}
}