pbs_tape_restore
Restore data from a tape media-set to a datastore. Supports selective snapshots and namespace mapping, with a dry-run plan by default.
Instructions
MUTATION: restore data from a tape media-set into a datastore.
RISK_HIGH: WRITES into an existing datastore; namespaces are AUTO-CREATED as needed; PBS's own schema does not state what happens if a target snapshot already exists at the destination (Smoke-confirm — may overwrite, skip, or fail per-snapshot); a media-set can span many snapshots across many namespaces in one call. Dry-run by default (returns a PLAN); confirm=True executes (POST /tape/restore) and returns {"status": "submitted", "result": ""}. Needs PROXIMO_PBS_* config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drive | Yes | Drive identifier (3-32 chars). | |
| owner | No | Authentication ID to own restored snapshots (user@realm or user@realm!token-name). | |
| store | Yes | Datastore MAPPING — comma-separated (<source>=)?<target> entries, e.g. 'a=b,e' maps source 'a' to target 'b' and everything else to default 'e'. NOT the same shape as pbs_tape_backup's plain single-identifier store. | |
| confirm | No | False (default) returns a dry-run PLAN only; True executes the restore. | |
| media_set | Yes | Media set UUID to restore from. | |
| snapshots | No | Selective restore: specific snapshots as 'store:[ns/namespace/...]type/id/time'. Omit to restore the WHOLE media-set. | |
| namespaces | No | Namespace mappings: 'store=<name>[,max-depth=<int>][,source=<ns>][,target=<ns>]' entries. Omit to restore into default namespaces (auto-created as needed). | |
| notify_user | No | Notify-user (user@realm). | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. | |
| notification_mode | No | 'legacy-sendmail' or 'notification-system'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |