database/backup-database
Description
- Backup the database using either the database handle or the database name.
Request URL
http://127.0.0.1:8888/api/
Request Method
Parameters
Parameter Name | Required | Parameter Type | Description |
---|
type | Yes | int | API ID |
dbName | No | string | Name of the database, with lower priority than dbHandle |
dbHandle | No | int | Database handle, with higher priority than dbName |
outPath | Yes | string | Backup storage path (including file name) |
Request Example
{
"type": 10059,
"dbName": "MicroMsg.db",
"outPath": "C:\\MicroMsg.bak.db"
}
Return Example
{
"data": {
"status": 0,
"desc": "",
"data": []
}
}
Return Parameter Description
Parameter Name | Parameter Type | Description |
---|
error_code | int | Error code |
description | string | Error Description |
data | json | Business data |