Skip to main content

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

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--include-resourcesstringSpecific VMs to retry (format: 'vmName:namespace,vmName2:namespace2')-Optional
--include-resources-filestringPath to YAML/JSON file containing list of specific VMs to retry-Optional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--name, -nstringName of the backup to retry (required)-Optional
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--skip-vm-auto-exec-rulesboolSkip automatic VM execution rules during retryfalseOptional
--tls-certificatestringtls certificate-Optional
--uidstringUID of the backup to retry-Optional