pbs_namespace_move
Move a backup namespace tree to a new parent within the same datastore. Dry-run by default; confirm to execute, with source deletion and potential breaking of references.
Instructions
MUTATION: move a backup namespace INCLUDING ALL CHILD NAMESPACES AND GROUPS to a new location within the same datastore.
RISK_HIGH — the widest-blast-radius non-deleting mutation on this plane: the whole tree relocates (max_depth defaults to full recursion upstream), the SOURCE tree is then REMOVED (delete_source defaults TRUE upstream), and every job (sync/prune/verify/tape), ACL path, and pull/push target referencing the old namespace path breaks or silently matches nothing afterward. Data survives at the target. Dry-run by default (the PLAN discloses every where-data-lands param including both upstream defaults); confirm=True executes (POST /admin/datastore/{store}/move-namespace, async — UPID; a null return records "ok"). No single-call undo. Needs PROXIMO_PBS_* config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ns | Yes | SOURCE namespace to move. Must be non-empty — the root namespace cannot be relocated. | |
| store | Yes | PBS datastore name (source and target — same datastore). | |
| confirm | No | False (default) returns a dry-run PLAN only; True executes the move. | |
| max_depth | No | Recursion depth 0-7. Upstream default 7 = FULL recursion — omitting it moves EVERYTHING under ns. | |
| target_ns | Yes | TARGET parent namespace. Empty string = move into the root namespace. | |
| merge_groups | No | Upstream default TRUE: same-name groups already in the target get the moved snapshots merged in. False = fail on conflict. | |
| delete_source | No | Upstream default TRUE: the source namespace tree is REMOVED after the move. False = keep the (now-empty) source tree. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |