Copies an existing backup within the same Amazon Web Services account to another Amazon Web Services Region (cross-Region copy) or within the same Amazon Web Services Region (in-Region copy)
Source:R/fsx_operations.R
fsx_copy_backup.RdCopies an existing backup within the same Amazon Web Services account to another Amazon Web Services Region (cross-Region copy) or within the same Amazon Web Services Region (in-Region copy). You can have up to five backup copy requests in progress to a single destination Region per account.
See https://www.paws-r-sdk.com/docs/fsx_copy_backup/ for full documentation.
Usage
fsx_copy_backup(
ClientRequestToken = NULL,
SourceBackupId,
SourceRegion = NULL,
KmsKeyId = NULL,
CopyTags = NULL,
Tags = NULL
)Arguments
- ClientRequestToken
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
- SourceBackupId
[required] The ID of the source backup. Specifies the ID of the backup that's being copied.
- SourceRegion
The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region,
SourceRegiondefaults to the Region where the request is sent from (in-Region copy).- KmsKeyId
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:
Amazon FSx for Lustre
PERSISTENT_1andPERSISTENT_2deployment types only.SCRATCH_1andSCRATCH_2types are encrypted using the Amazon FSx service KMS key for your account.Amazon FSx for NetApp ONTAP
Amazon FSx for OpenZFS
Amazon FSx for Windows File Server
If a
KmsKeyIdisn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see Encrypt in the Key Management Service API Reference.A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to
false.If you set
CopyTagstotrueand the source backup has existing tags, you can use theTagsparameter to create new tags, provided that the sum of the source backup tags and the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same key but different values), the tags created with theTagsparameter take precedence.A list of
Tagvalues, with a maximum of 50 elements.