AWS Fundamentals Logo
AWS Fundamentals
aws backup

AWS AWS Backup CLI Commands

108 CLI commands available for AWS Backup.

CommandSample
associate-backup-vault-mpa-approval-team

Associates an MPA approval team with a backup vault.

cancel-legal-hold

Removes the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions.

create-backup-plan

Creates 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

create-backup-selection

Creates a JSON document that specifies a set of resources to assign to a backup plan. For examples, see Assigning resources programmatically.

create-backup-vault

Creates 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.

create-framework

Creates 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

create-legal-hold

Creates 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.

create-logically-air-gapped-backup-vault

Creates 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

create-report-plan

Creates 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.

create-restore-access-backup-vault

Creates a restore access backup vault that provides temporary access to recovery points in a logically air-gapped backup vault, subject to MPA approval.

create-restore-testing-plan

Creates 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.

create-restore-testing-selection

This 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

create-tiering-configuration

Creates 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

delete-backup-plan

Deletes 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.

delete-backup-selection

Deletes the resource selection associated with a backup plan that is specified by the SelectionId.

delete-backup-vault

Deletes the backup vault identified by its name. A vault can be deleted only if it is empty.

delete-backup-vault-access-policy

Deletes the policy document that manages permissions on a backup vault.

delete-backup-vault-lock-configuration

Deletes 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

delete-backup-vault-notifications

Deletes event notifications for the specified backup vault.

delete-framework

Deletes the framework specified by a framework name.

delete-recovery-point

Deletes 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

delete-report-plan

Deletes the report plan specified by a report plan name.

delete-restore-testing-plan

This request deletes the specified restore testing plan. Deletion can only successfully occur if all associated restore testing selections are deleted first.

delete-restore-testing-selection

Input 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.

delete-tiering-configuration

Deletes the tiering configuration specified by a tiering configuration name.

describe-backup-job

Returns backup job details for the specified BackupJobId.

describe-backup-vault

Returns metadata about a backup vault specified by its name.

describe-copy-job

Returns metadata associated with creating a copy of a resource.

describe-framework

Returns the framework details for the specified FrameworkName.

describe-global-settings

Describes 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

describe-protected-resource

Returns 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.

describe-recovery-point

Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.

describe-region-settings

Returns 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

describe-report-job

Returns the details associated with creating a report as specified by its ReportJobId.

describe-report-plan

Returns a list of all report plans for an Amazon Web Services account and Amazon Web Services Region.

describe-restore-job

Returns metadata associated with a restore job that is specified by a job ID.

describe-scan-job

Returns scan job details for the specified ScanJobID.

disassociate-backup-vault-mpa-approval-team

Removes the association between an MPA approval team and a backup vault, disabling the MPA approval workflow for restore operations.

disassociate-recovery-point

Deletes 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

disassociate-recovery-point-from-parent

This action to a specific child (nested) recovery point removes the relationship between the specified recovery point and its parent (composite) recovery point.

export-backup-plan-template

Returns the backup plan that is specified by the plan ID as a backup template.

get-backup-plan

Returns BackupPlan details for the specified BackupPlanId. The details are the body of a backup plan in JSON format, in addition to plan metadata.

get-backup-plan-from-json

Returns a valid JSON document specifying a backup plan or an error.

get-backup-plan-from-template

Returns the template specified by its templateId as a backup plan.

get-backup-selection

Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.

get-backup-vault-access-policy

Returns the access policy document that is associated with the named backup vault.

get-backup-vault-notifications

Returns event notifications for the specified backup vault.

get-legal-hold

This action returns details for a specified legal hold. The details are the body of a legal hold in JSON format, in addition to metadata.

get-recovery-point-index-details

This operation returns the metadata and details specific to the backup index associated with the specified recovery point.

get-recovery-point-restore-metadata

Returns a set of metadata key-value pairs that were used to create the backup.

get-restore-job-metadata

This request returns the metadata for the specified restore job.

get-restore-testing-inferred-metadata

This 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.

get-restore-testing-plan

Returns RestoreTestingPlan details for the specified RestoreTestingPlanName. The details are the body of a restore testing plan in JSON format, in addition to plan metadata.

get-restore-testing-selection

Returns RestoreTestingSelection, which displays resources and elements of the restore testing plan.

get-supported-resource-types

Returns the Amazon Web Services resource types supported by Backup.

get-tiering-configuration

Returns TieringConfiguration details for the specified TieringConfigurationName. The details are the body of a tiering configuration in JSON format, in addition to configuration metadata.

list-backup-job-summaries

This 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

list-backup-jobs

Returns 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.

list-backup-plan-templates

Lists the backup plan templates.

list-backup-plan-versions

Returns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs.

list-backup-plans

Lists the active backup plans for the account.

list-backup-selections

Returns an array containing metadata of the resources associated with the target backup plan.

list-backup-vaults

Returns a list of recovery point storage containers along with information about them.

list-copy-job-summaries

This 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

list-copy-jobs

Returns metadata about your copy jobs.

list-frameworks

Returns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region.

list-indexed-recovery-points

This 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.

list-legal-holds

This action returns metadata about active and previous legal holds.

list-protected-resources

Returns 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.

list-protected-resources-by-backup-vault

This request lists the protected resources corresponding to each backup vault.

list-recovery-points-by-backup-vault

Returns detailed information about the recovery points stored in a backup vault.

list-recovery-points-by-legal-hold

This action returns recovery point ARNs (Amazon Resource Names) of the specified legal hold.

list-recovery-points-by-resource

The 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.

list-report-jobs

Returns details about your report jobs.

list-report-plans

Returns a list of your report plans. For detailed information about a single report plan, use DescribeReportPlan.

list-restore-access-backup-vaults

Returns a list of restore access backup vaults associated with a specified backup vault.

list-restore-job-summaries

This 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

list-restore-jobs

Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.

list-restore-jobs-by-protected-resource

This returns restore jobs that contain the specified protected resource. You must include ResourceArn. You can optionally include NextToken, ByStatus, MaxResults, ByRecoveryPointCreationDateAfter , and ByRecoveryPointCreationDateBefore.

list-restore-testing-plans

Returns a list of restore testing plans.

list-restore-testing-selections

Returns a list of restore testing selections. Can be filtered by MaxResults and RestoreTestingPlanName.

list-scan-job-summaries

This is a request for a summary of scan jobs created or running within the most recent 30 days.

list-scan-jobs

Returns a list of existing scan jobs for an authenticated account for the last 30 days.

list-tags

Returns 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

list-tiering-configurations

Returns a list of tiering configurations.

put-backup-vault-access-policy

Sets 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.

put-backup-vault-lock-configuration

Applies 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

put-backup-vault-notifications

Turns on notifications on a backup vault for the specified topic and events.

put-restore-validation-result

This request allows you to send your independent self-run restore test validation results. RestoreJobId and ValidationStatus are required. Optionally, you can input a ValidationStatusMessage.

revoke-restore-access-backup-vault

Revokes access to a restore access backup vault, removing the ability to restore from its recovery points and permanently deleting the vault.

start-backup-job

Starts an on-demand backup job for the specified resource.

start-copy-job

Starts 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.

start-report-job

Starts an on-demand report job for the specified report plan.

start-restore-job

Recovers the saved resource identified by an Amazon Resource Name (ARN).

start-scan-job

Starts scanning jobs for specific resources.

stop-backup-job

Attempts 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

tag-resource

Assigns a set of key-value pairs to a resource.

untag-resource

Removes 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.

update-backup-plan

Updates the specified backup plan. The new version is uniquely identified by its ID.

update-framework

Updates the specified framework.

update-global-settings

Updates 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.

update-recovery-point-index-settings

This operation updates the settings of a recovery point index. Required: BackupVaultName, RecoveryPointArn, and IAMRoleArn

update-recovery-point-lifecycle

Sets 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

update-region-settings

Updates the current service opt-in settings for the Region. Use the DescribeRegionSettings API to determine the resource types that are supported.

update-report-plan

Updates the specified report plan.

update-restore-testing-plan

This 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

update-restore-testing-selection

Updates 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.

update-tiering-configuration

This request will send changes to your specified tiering configuration. TieringConfigurationName cannot be updated after it is created. ResourceSelection can contain: Resources TieringDownSettingsInDays ResourceType

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Stats

Total Commands108
ServiceBackup