local_ydb_restore_tenant
Restore a YDB tenant from a selected dump into the configured destination path, with optional post-restore verification via count queries and scheme describes. Set confirm=true to execute; omit to preview the plan without writing data.
Instructions
Restore the configured tenant or destination path from a dump under profile.dumpHostPath, with optional post-restore scheme describe and bounded count-query verification. Use after bootstrap or rebuild when the target tenant is ready; without confirm=true this returns the restore plan and does not write data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Destination directory path for YDB tools restore -p, relative to the configured tenant. Defaults to . for tenant root. | |
| confirm | No | Must be true to restore the tenant from the selected dump. Omit or false for plan-only output. | |
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| dumpName | Yes | Dump directory name under profile.dumpHostPath. | |
| configPath | No | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. | |
| countQueries | No | Optional bounded whole-table SELECT COUNT(*) or COUNT(1) queries to verify restored data after the restore command. | |
| describePaths | No | Optional tenant-relative paths to verify with scheme describe after the restore command. |