px pxb retry
Retry px-backup resources
note
The following commands support a set of global flags that apply to all px pxb commands.
For details, see the Global Flags section.
px pxb retry backup
Retry a failed or partially completed backup.
This command allows you to retry backup operations that have failed or completed partially. It is particularly useful for VM backups where individual virtual machines may have failed during the backup process. You can specify which specific resources to retry or retry the entire backup operation.
Note: This operation is primarily supported for VirtualMachine backup types.
Examples:
# Retry entire backup by name
pxb retry backup --name my-failed-backup
# Retry backup by UID
pxb retry backup --uid backup-12345
# Retry specific VMs in a backup
pxb retry backup --name vm-backup --include-resources "vm1:default,vm2:production"
# Retry backup and skip VM auto execution rules
pxb retry backup --name vm-backup --skip-vm-auto-exec-rules
# Retry specific VMs with auto rules disabled
pxb retry backup --name vm-backup --include-resources "vm1:default,vm2:production" --skip-vm-auto-exec-rules
Flags
| Flag | Input type | Description | Default | Required |
|---|---|---|---|---|
--authtoken | string | oidc auth token | - | Optional |
--dry-run | bool | Simulate the operation without making any changes | false | Optional |
--endpoint, -e | string | The endpoint of the server | - | Optional |
--include-resources | string | Specific VMs to retry (format: 'vmName:namespace,vmName2:namespace2') | - | Optional |
--include-resources-file | string | Path to YAML/JSON file containing list of specific VMs to retry | - | Optional |
--labels, -l | string | Comma separated list of labels as key-value pairs: 'k1=v1,k2=v2' | - | Optional |
--name, -n | string | Name of the backup to retry (required) | - | Optional |
--orgID | string | The org id for which to query the object | default | Optional |
--output, -o | string | Output format. One of: table|json|yaml|name | table | Optional |
--skip-vm-auto-exec-rules | bool | Skip automatic VM execution rules during retry | false | Optional |
--tls-certificate | string | tls certificate | - | Optional |
--uid | string | UID of the backup to retry | - | Optional |