This function restores a database's backup files.
Important:
When the MySQL Client role is disabled, the system also disables this function.
Note:
You must pass either the file
or backup
parameter.
The database backup file to upload and restore.
Important:
Note:
file-1
, file-2
, and file-3
.uapi --input=json --output=jsonpretty \ --user=username \ Backup \ restore_databases
{- "apiversion": 3,
- "func": "restore_databases",
- "module": "Backup",
- "result": {
- "data": {
- "log_id": "2019-08-13T15:10:07Z.1",
- "log_path": "/home/cptest/logs/restoredb/2019-08-13T15:10:07Z.1.log",
- "messages": [
- "The system successfully restored the database 'user_db1' from the backup file 'user_db1.sql.gz'"
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}