Backup¶
Fudo allows configuring multiple backup target destinations, where data can be stored. Each backup target can have S3, Backblaze, FTP, or SFTP as a destination place.
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Unique and read-only object Identifier |
|
|
string |
yes |
Unique, case insensitive object name |
|
string {backblaze, ftp, s3, sftp} |
yes |
Immutable, case insensitive |
|
string |
If |
Backblaze bucket name. |
|
string |
If |
Directory within the Backblaze bucket. |
|
string |
If |
Backblaze key ID. |
|
string |
If |
Protected. Backblaze application key. |
|
string |
If |
FTP server address. |
|
string |
If |
FTP login username. |
|
string |
If |
Protected. FTP password. |
|
string |
If |
Target directory on the FTP server. |
|
string |
If |
S3 bucket name. |
|
string |
If |
Directory within the S3 bucket. |
|
string |
If |
AWS access key ID. |
|
string |
If |
Protected. AWS secret access key. |
|
string |
If |
Custom S3 endpoint URL. |
|
string |
If |
AWS region name. |
|
string |
If |
SFTP server address. |
|
number; default value |
If |
SFTP server port. |
|
string |
If |
SFTP login username. |
|
string |
If |
Protected. User SSH private key. |
|
string |
If |
Protected. Passphrase to decrypt user SSH private key. |
|
string |
If |
Directory on the SFTP server. |
|
string |
If |
SFTP server SSH public key. |
|
datetime |
Read-only. Creation timestamp. |
|
|
datetime |
Read-only. Modification timestamp. |
|
|
number |
Read-only. Hidden. Expensive to use. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the BackupModel¶
Request
Method |
|
Path |
|
GET /api/v2/objspec/backup
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/backup'
Create Backup Target¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/backup
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/backup' \
-d'{"name": "FTP_Backup","type": "ftp","ftp_address": "10.0.130.100"}'
Response
{
"result": "success",
"backup": {
"id": "801640733671948290"
}
}
Get Backup Definitions List¶
Request
Method |
|
Path |
|
Example Request
GET /api/v2/backup
"result": "success",
"backup": [
{
"id": "9124292845052624897",
"name": "FTP_Backup",
"type": "ftp",
"path": "",
"created_at": "2024-06-16 13:50:42.355762-07",
"modified_at": "2024-06-16 14:29:47.217872-07"
},
{
"id": "9124292845052624898",
"name": "Backblaze_Backup",
"type": "backblaze",
"path": "myBucket\/",
"created_at": "2024-06-16 14:29:47.226305-07",
"modified_at": "2024-06-16 14:29:47.226305-07"
}
]
Get a Backup Definition by ID¶
Request
Method |
|
Path |
|
GET /api/v2/backup/<id>
Assign Backup Definition to Session¶
Request
Method |
|
Path |
|
POST /api/v2/session/<session_id>/backup/<backup_id>
Delete Backup Definition¶
Request
Method |
|
Path |
|
DELETE /api/v2/backup/<id>