Protect/Unprotect Snapshot
pbs_protect_snapshotSet or remove protection on backup snapshots to prevent pruning or deletion. Specify datastore, backup type, ID, and timestamp.
Instructions
Set or remove protection on a backup snapshot. Protected snapshots cannot be pruned or deleted.
Args:
store (string): Datastore name
backup_type (string): "vm", "ct", or "host"
backup_id (string): Backup ID
backup_time (string): Backup timestamp in ISO format (e.g. "2025-03-22T04:00:00Z")
protected (boolean): true to protect, false to unprotect
ns (string, optional): Namespace path
Returns: Confirmation of the protection change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ns | No | Namespace path | |
| store | Yes | Datastore name | |
| backup_id | Yes | Backup ID | |
| protected | Yes | true to protect, false to unprotect | |
| backup_time | Yes | Backup timestamp in ISO format | |
| backup_type | Yes | Backup type |