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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| out_dir | Yes | ||
| label | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||