db_table_backup
Backup any supported OpenSIPS data table by dumping its contents to a timestamped JSON file in a specified directory. Optionally add a label to the filename for identification.
Instructions
Dump table to a timestamped JSON file under out_dir.
Parameters
table:
One of the supported OpenSIPS data tables (subscriber, dispatcher,
address, drouting_rule, drouting_gateway, drouting_carrier,
dialplan, load_balancer, domain, tls_mgm).
out_dir:
Directory to write into. Must be in the safe allowlist.
label:
Optional tag (e.g. before-bulk-import) added to the filename.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table": "<table>",
"out_dir": "<out_dir>"
},
"name": "db_table_backup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| out_dir | Yes | ||
| label | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||