backup_database
Creates a copy of the Kiln SQLite database, redacting API keys, access codes, and payment references by default to keep sensitive data out of backups.
Instructions
Back up the Kiln database with optional credential redaction.
Creates a copy of the SQLite database. By default, sensitive fields
(API keys, access codes, payment refs) are replaced with "REDACTED"
in the backup.
Args:
output_path: Destination file path. Defaults to
``~/.kiln/backups/kiln-YYYYMMDD-HHMMSS.db``.
redact: If ``True`` (default), redact credentials in the backup.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "backup_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| redact | No | If ``True`` (default), redact credentials in the backup. Default: true. | |
| output_path | No | Destination file path. Defaults to ``~/.kiln/backups/kiln-YYYYMMDD-HHMMSS.db``. |