Skip to main content

px pxb suspend

Suspend 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 suspend backupschedule​

Suspend one or more backup schedules to temporarily stop scheduled backups.

This command can suspend a specific backup schedule by name and UID, or perform bulk suspension using various filtering options. Suspended schedules will not create new backups until resumed.

Examples:

# Suspend specific backup schedule
pxb suspend backupschedule --name my-schedule --uid schedule-12345

# Suspend with a remark for audit trail
pxb suspend backupschedule --name my-schedule --remark "Suspending for maintenance window"

# Bulk suspend across all clusters for all object types
pxb suspend backupschedule --backup-object-type All --cluster-scope All --include-filter "*"

# Bulk suspend with include/exclude name filters and remark
pxb suspend backupschedule --backup-object-type All --cluster-scope All --include-filter ".*test.*" --exclude-filter "^keep-" --remark "Suspending test schedules for system upgrade"

# Suspend schedules by policy reference (matching all names)
pxb suspend backupschedule --policy-refs "maintenance-policy" --backup-object-type All --cluster-scope All --include-filter "*"

Flags

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--backup-object-typestringSuspend schedules by backup object type: NS|VM|All-Optional
--bulk-uid-check-relaxationboolRelax UID check for bulk operations when using name-only references (e.g., policy-refs with name only)falseOptional
--cluster-scopestringCluster scope: All | name[:uid][,name2[:uid2]...]-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--exclude-filterstringExclude filter expression for bulk suspension-Optional
--exclude-objectsstringSliceExclude specific backup schedules by name from bulk suspension[]Optional
--exclude-objects-filestringYAML/JSON file containing exclude objects list-Optional
--filestringYAML/JSON configuration file for bulk suspend operation-Optional
--include-filterstringInclude filter expression for bulk suspension-Optional
--include-objectsstringSliceInclude specific backup schedules by name for bulk suspension[]Optional
--include-objects-filestringYAML/JSON file containing include objects list-Optional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--name, -nstringName of the backup schedule to suspend-Optional
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--policy-refsstringSliceSuspend schedules by schedule policy references (name or name:uid)[]Optional
--policy-refs-filestringYAML/JSON file containing policy references list-Optional
--remarkstringUser remark for this suspend operation-Optional
--tls-certificatestringtls certificate-Optional
--uid, -ustringUID of the backup schedule to suspend-Optional
--volume-resource-only-policy-refsstringSliceSuspend schedules by volumeResourceOnly policy references (name or name:uid)[]Optional
In this topic: