verify-restore
Verify restored databases by running engine-native consistency checks on SQL Server, PostgreSQL, and Oracle to confirm backups are recoverable and intact.
Instructions
dbabrain common.cli verify-restore: Which restored databases to ask about, and where.
Request fields (pass them as request):
db_type (required): The engine.
target: The instance.
host: Oracle / PostgreSQL: the host block the check runs on - {host, port, username, password|key_file, runtime}.
port: Its port.
username: Who asks.
database_names: The databases, by the names they were restored under.
database_name: One database.
oracle_sid: Oracle: the SID.
timeout_seconds: How long to wait.
consistency: Also run the engine's own consistency check (0.35.0, 1.251): DBCC CHECKDB on each SQL Server database, pg_amcheck --all on PostgreSQL, RMAN VALIDATE CHECK LOGICAL and v$database_block_corruption on Oracle. restore-by-...
consistency_timeout_seconds: With consistency: how long the check may run - kept on the host for PostgreSQL (timeout), the transport waits 60 s more; RMAN VALIDATE likewise. restore-by-id sets it from the entry's checkdb_timeout_seconds.
consistency_jobs: With consistency on PostgreSQL: pg_amcheck --jobs. restore-by-id sets it from the entry's checkdb_jobs.
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": "verify-restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |