aws backup108 CLI commands available for AWS Backup.
| Command | API Operation | Sample |
|---|---|---|
associate-backup-vault-mpa-approval-teamAssociates an MPA approval team with a backup vault. | AssociateBackupVaultMpaApprovalTeam | |
cancel-legal-holdRemoves the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions. | CancelLegalHold | |
create-backup-planCreates a backup plan using a backup plan name and backup rules. A backup plan is a document that contains information that Backup uses to schedule tasks that create recovery points for resources. If you call CreateBackupPlan with a plan that already exists, you receive an AlreadyExistsException exc | CreateBackupPlan | |
create-backup-selectionCreates a JSON document that specifies a set of resources to assign to a backup plan. For examples, see Assigning resources programmatically. | CreateBackupSelection | |
create-backup-vaultCreates a logical container where backups are stored. A CreateBackupVault request includes a name, optionally one or more resource tags, an encryption key, and a request ID. Do not include sensitive data, such as passport numbers, in the name of a backup vault. | CreateBackupVault | |
create-frameworkCreates a framework with one or more controls. A framework is a collection of controls that you can use to evaluate your backup practices. By using pre-built customizable controls to define your policies, you can evaluate whether your backup practices comply with your policies and which resources ar | CreateFramework | |
create-legal-holdCreates a legal hold on a recovery point (backup). A legal hold is a restraint on altering or deleting a backup until an authorized user cancels the legal hold. Any actions to delete or disassociate a recovery point will fail with an error if one or more active legal holds are on the recovery point. | CreateLegalHold | |
create-logically-air-gapped-backup-vaultCreates a logical container to where backups may be copied. This request includes a name, the Region, the maximum number of retention days, the minimum number of retention days, and optionally can include tags and a creator request ID. Do not include sensitive data, such as passport numbers, in the | CreateLogicallyAirGappedBackupVault | |
create-report-planCreates a report plan. A report plan is a document that contains information about the contents of the report and where Backup will deliver it. If you call CreateReportPlan with a plan that already exists, you receive an AlreadyExistsException exception. | CreateReportPlan | |
create-restore-access-backup-vaultCreates a restore access backup vault that provides temporary access to recovery points in a logically air-gapped backup vault, subject to MPA approval. | CreateRestoreAccessBackupVault | |
create-restore-testing-planCreates a restore testing plan. The first of two steps to create a restore testing plan. After this request is successful, finish the procedure using CreateRestoreTestingSelection. | CreateRestoreTestingPlan | |
create-restore-testing-selectionThis request can be sent after CreateRestoreTestingPlan request returns successfully. This is the second part of creating a resource testing plan, and it must be completed sequentially. This consists of RestoreTestingSelectionName, ProtectedResourceType, and one of the following: ProtectedResourc | CreateRestoreTestingSelection | |
create-tiering-configurationCreates a tiering configuration. A tiering configuration enables automatic movement of backup data to a lower-cost storage tier based on the age of backed-up objects in the backup vault. Each vault can only have one vault-specific tiering configuration, in addition to any global configuration that a | CreateTieringConfiguration | |
delete-backup-planDeletes a backup plan. A backup plan can only be deleted after all associated selections of resources have been deleted. Deleting a backup plan deletes the current version of a backup plan. Previous versions, if any, will still exist. | DeleteBackupPlan | |
delete-backup-selectionDeletes the resource selection associated with a backup plan that is specified by the SelectionId. | DeleteBackupSelection | |
delete-backup-vaultDeletes the backup vault identified by its name. A vault can be deleted only if it is empty. | DeleteBackupVault | |
delete-backup-vault-access-policyDeletes the policy document that manages permissions on a backup vault. | DeleteBackupVaultAccessPolicy | |
delete-backup-vault-lock-configurationDeletes Backup Vault Lock from a backup vault specified by a backup vault name. If the Vault Lock configuration is immutable, then you cannot delete Vault Lock using API operations, and you will receive an InvalidRequestException if you attempt to do so. For more information, see Vault Lock in the B | DeleteBackupVaultLockConfiguration | |
delete-backup-vault-notificationsDeletes event notifications for the specified backup vault. | DeleteBackupVaultNotifications | |
delete-frameworkDeletes the framework specified by a framework name. | DeleteFramework | |
delete-recovery-pointDeletes the recovery point specified by a recovery point ID. If the recovery point ID belongs to a continuous backup, calling this endpoint deletes the existing continuous backup and stops future continuous backup. When an IAM role's permissions are insufficient to call this API, the service sends b | DeleteRecoveryPoint | |
delete-report-planDeletes the report plan specified by a report plan name. | DeleteReportPlan | |
delete-restore-testing-planThis request deletes the specified restore testing plan. Deletion can only successfully occur if all associated restore testing selections are deleted first. | DeleteRestoreTestingPlan | |
delete-restore-testing-selectionInput the Restore Testing Plan name and Restore Testing Selection name. All testing selections associated with a restore testing plan must be deleted before the restore testing plan can be deleted. | DeleteRestoreTestingSelection | |
delete-tiering-configurationDeletes the tiering configuration specified by a tiering configuration name. | DeleteTieringConfiguration | |
describe-backup-jobReturns backup job details for the specified BackupJobId. | DescribeBackupJob | |
describe-backup-vaultReturns metadata about a backup vault specified by its name. | DescribeBackupVault | |
describe-copy-jobReturns metadata associated with creating a copy of a resource. | DescribeCopyJob | |
describe-frameworkReturns the framework details for the specified FrameworkName. | DescribeFramework | |
describe-global-settingsDescribes whether the Amazon Web Services account is opted in to cross-account backup. Returns an error if the account is not a member of an Organizations organization. Example: describe-global-settings --region us-west-2 | DescribeGlobalSettings | |
describe-protected-resourceReturns information about a saved resource, including the last time it was backed up, its Amazon Resource Name (ARN), and the Amazon Web Services service type of the saved resource. | DescribeProtectedResource | |
describe-recovery-pointReturns metadata associated with a recovery point, including ID, status, encryption, and lifecycle. | DescribeRecoveryPoint | |
describe-region-settingsReturns the current service opt-in settings for the Region. If service opt-in is enabled for a service, Backup tries to protect that service's resources in this Region, when the resource is included in an on-demand backup or scheduled backup plan. Otherwise, Backup does not try to protect that servi | DescribeRegionSettings | |
describe-report-jobReturns the details associated with creating a report as specified by its ReportJobId. | DescribeReportJob | |
describe-report-planReturns a list of all report plans for an Amazon Web Services account and Amazon Web Services Region. | DescribeReportPlan | |
describe-restore-jobReturns metadata associated with a restore job that is specified by a job ID. | DescribeRestoreJob | |
describe-scan-jobReturns scan job details for the specified ScanJobID. | DescribeScanJob | |
disassociate-backup-vault-mpa-approval-teamRemoves the association between an MPA approval team and a backup vault, disabling the MPA approval workflow for restore operations. | DisassociateBackupVaultMpaApprovalTeam | |
disassociate-recovery-pointDeletes the specified continuous backup recovery point from Backup and releases control of that continuous backup to the source service, such as Amazon RDS. The source service will continue to create and retain continuous backups using the lifecycle that you specified in your original backup plan. D | DisassociateRecoveryPoint | |
disassociate-recovery-point-from-parentThis action to a specific child (nested) recovery point removes the relationship between the specified recovery point and its parent (composite) recovery point. | DisassociateRecoveryPointFromParent | |
export-backup-plan-templateReturns the backup plan that is specified by the plan ID as a backup template. | ExportBackupPlanTemplate | |
get-backup-planReturns BackupPlan details for the specified BackupPlanId. The details are the body of a backup plan in JSON format, in addition to plan metadata. | GetBackupPlan | |
get-backup-plan-from-jsonReturns a valid JSON document specifying a backup plan or an error. | GetBackupPlanFromJSON | |
get-backup-plan-from-templateReturns the template specified by its templateId as a backup plan. | GetBackupPlanFromTemplate | |
get-backup-selectionReturns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan. | GetBackupSelection | |
get-backup-vault-access-policyReturns the access policy document that is associated with the named backup vault. | GetBackupVaultAccessPolicy | |
get-backup-vault-notificationsReturns event notifications for the specified backup vault. | GetBackupVaultNotifications | |
get-legal-holdThis action returns details for a specified legal hold. The details are the body of a legal hold in JSON format, in addition to metadata. | GetLegalHold | |
get-recovery-point-index-detailsThis operation returns the metadata and details specific to the backup index associated with the specified recovery point. | GetRecoveryPointIndexDetails | |
get-recovery-point-restore-metadataReturns a set of metadata key-value pairs that were used to create the backup. | GetRecoveryPointRestoreMetadata | |
get-restore-job-metadataThis request returns the metadata for the specified restore job. | GetRestoreJobMetadata | |
get-restore-testing-inferred-metadataThis request returns the minimal required set of metadata needed to start a restore job with secure default settings. BackupVaultName and RecoveryPointArn are required parameters. BackupVaultAccountId is an optional parameter. | GetRestoreTestingInferredMetadata | |
get-restore-testing-planReturns RestoreTestingPlan details for the specified RestoreTestingPlanName. The details are the body of a restore testing plan in JSON format, in addition to plan metadata. | GetRestoreTestingPlan | |
get-restore-testing-selectionReturns RestoreTestingSelection, which displays resources and elements of the restore testing plan. | GetRestoreTestingSelection | |
get-supported-resource-typesReturns the Amazon Web Services resource types supported by Backup. | GetSupportedResourceTypes | |
get-tiering-configurationReturns TieringConfiguration details for the specified TieringConfigurationName. The details are the body of a tiering configuration in JSON format, in addition to configuration metadata. | GetTieringConfiguration | |
list-backup-job-summariesThis is a request for a summary of backup jobs created or running within the most recent 30 days. You can include parameters AccountID, State, ResourceType, MessageCategory, AggregationPeriod, MaxResults, or NextToken to filter results. This request returns a summary that contains Region, Account, S | ListBackupJobSummaries | |
list-backup-jobsReturns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these monitoring tools. | ListBackupJobs | |
list-backup-plan-templatesLists the backup plan templates. | ListBackupPlanTemplates | |
list-backup-plan-versionsReturns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs. | ListBackupPlanVersions | |
list-backup-plansLists the active backup plans for the account. | ListBackupPlans | |
list-backup-selectionsReturns an array containing metadata of the resources associated with the target backup plan. | ListBackupSelections | |
list-backup-vaultsReturns a list of recovery point storage containers along with information about them. | ListBackupVaults | |
list-copy-job-summariesThis request obtains a list of copy jobs created or running within the the most recent 30 days. You can include parameters AccountID, State, ResourceType, MessageCategory, AggregationPeriod, MaxResults, or NextToken to filter results. This request returns a summary that contains Region, Account, Sta | ListCopyJobSummaries | |
list-copy-jobsReturns metadata about your copy jobs. | ListCopyJobs | |
list-frameworksReturns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region. | ListFrameworks | |
list-indexed-recovery-pointsThis operation returns a list of recovery points that have an associated index, belonging to the specified account. Optional parameters you can include are: MaxResults; NextToken; SourceResourceArns; CreatedBefore; CreatedAfter; and ResourceType. | ListIndexedRecoveryPoints | |
list-legal-holdsThis action returns metadata about active and previous legal holds. | ListLegalHolds | |
list-protected-resourcesReturns an array of resources successfully backed up by Backup, including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type. | ListProtectedResources | |
list-protected-resources-by-backup-vaultThis request lists the protected resources corresponding to each backup vault. | ListProtectedResourcesByBackupVault | |
list-recovery-points-by-backup-vaultReturns detailed information about the recovery points stored in a backup vault. | ListRecoveryPointsByBackupVault | |
list-recovery-points-by-legal-holdThis action returns recovery point ARNs (Amazon Resource Names) of the specified legal hold. | ListRecoveryPointsByLegalHold | |
list-recovery-points-by-resourceThe information about the recovery points of the type specified by a resource Amazon Resource Name (ARN). For Amazon EFS and Amazon EC2, this action only lists recovery points created by Backup. | ListRecoveryPointsByResource | |
list-report-jobsReturns details about your report jobs. | ListReportJobs | |
list-report-plansReturns a list of your report plans. For detailed information about a single report plan, use DescribeReportPlan. | ListReportPlans | |
list-restore-access-backup-vaultsReturns a list of restore access backup vaults associated with a specified backup vault. | ListRestoreAccessBackupVaults | |
list-restore-job-summariesThis request obtains a summary of restore jobs created or running within the the most recent 30 days. You can include parameters AccountID, State, ResourceType, AggregationPeriod, MaxResults, or NextToken to filter results. This request returns a summary that contains Region, Account, State, Restour | ListRestoreJobSummaries | |
list-restore-jobsReturns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process. | ListRestoreJobs | |
list-restore-jobs-by-protected-resourceThis returns restore jobs that contain the specified protected resource. You must include ResourceArn. You can optionally include NextToken, ByStatus, MaxResults, ByRecoveryPointCreationDateAfter , and ByRecoveryPointCreationDateBefore. | ListRestoreJobsByProtectedResource | |
list-restore-testing-plansReturns a list of restore testing plans. | ListRestoreTestingPlans | |
list-restore-testing-selectionsReturns a list of restore testing selections. Can be filtered by MaxResults and RestoreTestingPlanName. | ListRestoreTestingSelections | |
list-scan-job-summariesThis is a request for a summary of scan jobs created or running within the most recent 30 days. | ListScanJobSummaries | |
list-scan-jobsReturns a list of existing scan jobs for an authenticated account for the last 30 days. | ListScanJobs | |
list-tagsReturns the tags assigned to the resource, such as a target recovery point, backup plan, or backup vault. This operation returns results depending on the resource type used in the value for resourceArn. For example, recovery points of Amazon DynamoDB with Advanced Settings have an ARN (Amazon Resour | ListTags | |
list-tiering-configurationsReturns a list of tiering configurations. | ListTieringConfigurations | |
put-backup-vault-access-policySets a resource-based policy that is used to manage access permissions on the target backup vault. Requires a backup vault name and an access policy document in JSON format. | PutBackupVaultAccessPolicy | |
put-backup-vault-lock-configurationApplies Backup Vault Lock to a backup vault, preventing attempts to delete any recovery point stored in or created in a backup vault. Vault Lock also prevents attempts to update the lifecycle policy that controls the retention period of any recovery point currently stored in a backup vault. If speci | PutBackupVaultLockConfiguration | |
put-backup-vault-notificationsTurns on notifications on a backup vault for the specified topic and events. | PutBackupVaultNotifications | |
put-restore-validation-resultThis request allows you to send your independent self-run restore test validation results. RestoreJobId and ValidationStatus are required. Optionally, you can input a ValidationStatusMessage. | PutRestoreValidationResult | |
revoke-restore-access-backup-vaultRevokes access to a restore access backup vault, removing the ability to restore from its recovery points and permanently deleting the vault. | RevokeRestoreAccessBackupVault | |
start-backup-jobStarts an on-demand backup job for the specified resource. | StartBackupJob | |
start-copy-jobStarts a job to create a one-time copy of the specified resource. Does not support continuous backups. See Copy job retry for information on how Backup retries copy job operations. | StartCopyJob | |
start-report-jobStarts an on-demand report job for the specified report plan. | StartReportJob | |
start-restore-jobRecovers the saved resource identified by an Amazon Resource Name (ARN). | StartRestoreJob | |
start-scan-jobStarts scanning jobs for specific resources. | StartScanJob | |
stop-backup-jobAttempts to cancel a job to create a one-time backup of a resource. This action is not supported for the following services: Amazon Aurora Amazon DocumentDB (with MongoDB compatibility) Amazon FSx for Lustre Amazon FSx for NetApp ONTAP Amazon FSx for OpenZFS Amazon FSx for Windows File S | StopBackupJob | |
tag-resourceAssigns a set of key-value pairs to a resource. | TagResource | |
untag-resourceRemoves a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN) This API is not supported for recovery points for resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, and Amazon RDS. | UntagResource | |
update-backup-planUpdates the specified backup plan. The new version is uniquely identified by its ID. | UpdateBackupPlan | |
update-frameworkUpdates the specified framework. | UpdateFramework | |
update-global-settingsUpdates whether the Amazon Web Services account is opted in to cross-account backup. Returns an error if the account is not an Organizations management account. Use the DescribeGlobalSettings API to determine the current settings. | UpdateGlobalSettings | |
update-recovery-point-index-settingsThis operation updates the settings of a recovery point index. Required: BackupVaultName, RecoveryPointArn, and IAMRoleArn | UpdateRecoveryPointIndexSettings | |
update-recovery-point-lifecycleSets the transition lifecycle of a recovery point. The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Resource types that can transition to cold storage | UpdateRecoveryPointLifecycle | |
update-region-settingsUpdates the current service opt-in settings for the Region. Use the DescribeRegionSettings API to determine the resource types that are supported. | UpdateRegionSettings | |
update-report-planUpdates the specified report plan. | UpdateReportPlan | |
update-restore-testing-planThis request will send changes to your specified restore testing plan. RestoreTestingPlanName cannot be updated after it is created. RecoveryPointSelection can contain: Algorithm ExcludeVaults IncludeVaults RecoveryPointTypes SelectionWindowDays | UpdateRestoreTestingPlan | |
update-restore-testing-selectionUpdates the specified restore testing selection. Most elements except the RestoreTestingSelectionName can be updated with this request. You can use either protected resource ARNs or conditions, but not both. | UpdateRestoreTestingSelection | |
update-tiering-configurationThis request will send changes to your specified tiering configuration. TieringConfigurationName cannot be updated after it is created. ResourceSelection can contain: Resources TieringDownSettingsInDays ResourceType | UpdateTieringConfiguration |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterBackup