FSx / Client / copy_backup
copy_backup¶
- FSx.Client.copy_backup(**kwargs)¶
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). You can have up to five backup copy requests in progress to a single destination Region per account.
You can use cross-Region backup copies for cross-Region disaster recovery. You can periodically take backups and copy them to another Region so that in the event of a disaster in the primary Region, you can restore from backup and recover availability quickly in the other Region. You can make cross-Region copies only within your Amazon Web Services partition. A partition is a grouping of Regions. Amazon Web Services currently has three partitions:
aws
(Standard Regions),aws-cn
(China Regions), andaws-us-gov
(Amazon Web Services GovCloud [US] Regions).You can also use backup copies to clone your file dataset to another Region or within the same Region.
You can use the
SourceRegion
parameter to specify the Amazon Web Services Region from which the backup will be copied. For example, if you make the call from theus-west-1
Region and want to copy a backup from theus-east-2
Region, you specifyus-east-2
in theSourceRegion
parameter to make a cross-Region copy. If you don’t specify a Region, the backup copy is created in the same Region where the request is sent from (in-Region copy).For more information about creating backup copies, see Copying backups in the Amazon FSx for Windows User Guide, Copying backups in the Amazon FSx for Lustre User Guide, and Copying backups in the Amazon FSx for OpenZFS User Guide.
See also: AWS API Documentation
Request Syntax
response = client.copy_backup( ClientRequestToken='string', SourceBackupId='string', SourceRegion='string', KmsKeyId='string', CopyTags=True|False, Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
ClientRequestToken (string) –
(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.
This field is autopopulated if not provided.
SourceBackupId (string) –
[REQUIRED]
The ID of the source backup. Specifies the ID of the backup that’s being copied.
SourceRegion (string) – 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,
SourceRegion
defaults to the Region where the request is sent from (in-Region copy).KmsKeyId (string) –
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_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types 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
KmsKeyId
isn’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.CopyTags (boolean) –
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
CopyTags
totrue
and the source backup has existing tags, you can use theTags
parameter 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 theTags
parameter take precedence.Tags (list) –
A list of
Tag
values, with a maximum of 50 elements.(dict) –
Specifies a key-value pair for a resource tag.
Key (string) – [REQUIRED]
A value that specifies the
TagKey
, the name of the tag. Tag keys must be unique for the resource to which they are attached.Value (string) – [REQUIRED]
A value that specifies the
TagValue
, the value assigned to the corresponding tag key. Tag values can be null and don’t have to be unique in a tag set. For example, you can have a key-value pair in a tag set offinances : April
and also ofpayroll : April
.
- Return type:
dict
- Returns:
Response Syntax
{ 'Backup': { 'BackupId': 'string', 'Lifecycle': 'AVAILABLE'|'CREATING'|'TRANSFERRING'|'DELETED'|'FAILED'|'PENDING'|'COPYING', 'FailureDetails': { 'Message': 'string' }, 'Type': 'AUTOMATIC'|'USER_INITIATED'|'AWS_BACKUP', 'ProgressPercent': 123, 'CreationTime': datetime(2015, 1, 1), 'KmsKeyId': 'string', 'ResourceARN': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'FileSystem': { 'OwnerId': 'string', 'CreationTime': datetime(2015, 1, 1), 'FileSystemId': 'string', 'FileSystemType': 'WINDOWS'|'LUSTRE'|'ONTAP'|'OPENZFS', 'Lifecycle': 'AVAILABLE'|'CREATING'|'FAILED'|'DELETING'|'MISCONFIGURED'|'UPDATING'|'MISCONFIGURED_UNAVAILABLE', 'FailureDetails': { 'Message': 'string' }, 'StorageCapacity': 123, 'StorageType': 'SSD'|'HDD'|'INTELLIGENT_TIERING', 'VpcId': 'string', 'SubnetIds': [ 'string', ], 'NetworkInterfaceIds': [ 'string', ], 'DNSName': 'string', 'KmsKeyId': 'string', 'ResourceARN': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'WindowsConfiguration': { 'ActiveDirectoryId': 'string', 'SelfManagedActiveDirectoryConfiguration': { 'DomainName': 'string', 'OrganizationalUnitDistinguishedName': 'string', 'FileSystemAdministratorsGroup': 'string', 'UserName': 'string', 'DnsIps': [ 'string', ] }, 'DeploymentType': 'MULTI_AZ_1'|'SINGLE_AZ_1'|'SINGLE_AZ_2', 'RemoteAdministrationEndpoint': 'string', 'PreferredSubnetId': 'string', 'PreferredFileServerIp': 'string', 'ThroughputCapacity': 123, 'MaintenanceOperationsInProgress': [ 'PATCHING'|'BACKING_UP', ], 'WeeklyMaintenanceStartTime': 'string', 'DailyAutomaticBackupStartTime': 'string', 'AutomaticBackupRetentionDays': 123, 'CopyTagsToBackups': True|False, 'Aliases': [ { 'Name': 'string', 'Lifecycle': 'AVAILABLE'|'CREATING'|'DELETING'|'CREATE_FAILED'|'DELETE_FAILED' }, ], 'AuditLogConfiguration': { 'FileAccessAuditLogLevel': 'DISABLED'|'SUCCESS_ONLY'|'FAILURE_ONLY'|'SUCCESS_AND_FAILURE', 'FileShareAccessAuditLogLevel': 'DISABLED'|'SUCCESS_ONLY'|'FAILURE_ONLY'|'SUCCESS_AND_FAILURE', 'AuditLogDestination': 'string' }, 'DiskIopsConfiguration': { 'Mode': 'AUTOMATIC'|'USER_PROVISIONED', 'Iops': 123 } }, 'LustreConfiguration': { 'WeeklyMaintenanceStartTime': 'string', 'DataRepositoryConfiguration': { 'Lifecycle': 'CREATING'|'AVAILABLE'|'MISCONFIGURED'|'UPDATING'|'DELETING'|'FAILED', 'ImportPath': 'string', 'ExportPath': 'string', 'ImportedFileChunkSize': 123, 'AutoImportPolicy': 'NONE'|'NEW'|'NEW_CHANGED'|'NEW_CHANGED_DELETED', 'FailureDetails': { 'Message': 'string' } }, 'DeploymentType': 'SCRATCH_1'|'SCRATCH_2'|'PERSISTENT_1'|'PERSISTENT_2', 'PerUnitStorageThroughput': 123, 'MountName': 'string', 'DailyAutomaticBackupStartTime': 'string', 'AutomaticBackupRetentionDays': 123, 'CopyTagsToBackups': True|False, 'DriveCacheType': 'NONE'|'READ', 'DataCompressionType': 'NONE'|'LZ4', 'LogConfiguration': { 'Level': 'DISABLED'|'WARN_ONLY'|'ERROR_ONLY'|'WARN_ERROR', 'Destination': 'string' }, 'RootSquashConfiguration': { 'RootSquash': 'string', 'NoSquashNids': [ 'string', ] }, 'MetadataConfiguration': { 'Iops': 123, 'Mode': 'AUTOMATIC'|'USER_PROVISIONED' }, 'EfaEnabled': True|False, 'ThroughputCapacity': 123, 'DataReadCacheConfiguration': { 'SizingMode': 'NO_CACHE'|'USER_PROVISIONED'|'PROPORTIONAL_TO_THROUGHPUT_CAPACITY', 'SizeGiB': 123 } }, 'AdministrativeActions': [ { 'AdministrativeActionType': 'FILE_SYSTEM_UPDATE'|'STORAGE_OPTIMIZATION'|'FILE_SYSTEM_ALIAS_ASSOCIATION'|'FILE_SYSTEM_ALIAS_DISASSOCIATION'|'VOLUME_UPDATE'|'SNAPSHOT_UPDATE'|'RELEASE_NFS_V3_LOCKS'|'VOLUME_RESTORE'|'THROUGHPUT_OPTIMIZATION'|'IOPS_OPTIMIZATION'|'STORAGE_TYPE_OPTIMIZATION'|'MISCONFIGURED_STATE_RECOVERY'|'VOLUME_UPDATE_WITH_SNAPSHOT'|'VOLUME_INITIALIZE_WITH_SNAPSHOT'|'DOWNLOAD_DATA_FROM_BACKUP', 'ProgressPercent': 123, 'RequestTime': datetime(2015, 1, 1), 'Status': 'FAILED'|'IN_PROGRESS'|'PENDING'|'COMPLETED'|'UPDATED_OPTIMIZING'|'OPTIMIZING', 'TargetFileSystemValues': {'... recursive ...'}, 'FailureDetails': { 'Message': 'string' }, 'TargetVolumeValues': { 'CreationTime': datetime(2015, 1, 1), 'FileSystemId': 'string', 'Lifecycle': 'CREATING'|'CREATED'|'DELETING'|'FAILED'|'MISCONFIGURED'|'PENDING'|'AVAILABLE', 'Name': 'string', 'OntapConfiguration': { 'FlexCacheEndpointType': 'NONE'|'ORIGIN'|'CACHE', 'JunctionPath': 'string', 'SecurityStyle': 'UNIX'|'NTFS'|'MIXED', 'SizeInMegabytes': 123, 'StorageEfficiencyEnabled': True|False, 'StorageVirtualMachineId': 'string', 'StorageVirtualMachineRoot': True|False, 'TieringPolicy': { 'CoolingPeriod': 123, 'Name': 'SNAPSHOT_ONLY'|'AUTO'|'ALL'|'NONE' }, 'UUID': 'string', 'OntapVolumeType': 'RW'|'DP'|'LS', 'SnapshotPolicy': 'string', 'CopyTagsToBackups': True|False, 'SnaplockConfiguration': { 'AuditLogVolume': True|False, 'AutocommitPeriod': { 'Type': 'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'NONE', 'Value': 123 }, 'PrivilegedDelete': 'DISABLED'|'ENABLED'|'PERMANENTLY_DISABLED', 'RetentionPeriod': { 'DefaultRetention': { 'Type': 'SECONDS'|'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'INFINITE'|'UNSPECIFIED', 'Value': 123 }, 'MinimumRetention': { 'Type': 'SECONDS'|'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'INFINITE'|'UNSPECIFIED', 'Value': 123 }, 'MaximumRetention': { 'Type': 'SECONDS'|'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'INFINITE'|'UNSPECIFIED', 'Value': 123 } }, 'SnaplockType': 'COMPLIANCE'|'ENTERPRISE', 'VolumeAppendModeEnabled': True|False }, 'VolumeStyle': 'FLEXVOL'|'FLEXGROUP', 'AggregateConfiguration': { 'Aggregates': [ 'string', ], 'TotalConstituents': 123 }, 'SizeInBytes': 123 }, 'ResourceARN': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'VolumeId': 'string', 'VolumeType': 'ONTAP'|'OPENZFS', 'LifecycleTransitionReason': { 'Message': 'string' }, 'AdministrativeActions': {'... recursive ...'}, 'OpenZFSConfiguration': { 'ParentVolumeId': 'string', 'VolumePath': 'string', 'StorageCapacityReservationGiB': 123, 'StorageCapacityQuotaGiB': 123, 'RecordSizeKiB': 123, 'DataCompressionType': 'NONE'|'ZSTD'|'LZ4', 'CopyTagsToSnapshots': True|False, 'OriginSnapshot': { 'SnapshotARN': 'string', 'CopyStrategy': 'CLONE'|'FULL_COPY'|'INCREMENTAL_COPY' }, 'ReadOnly': True|False, 'NfsExports': [ { 'ClientConfigurations': [ { 'Clients': 'string', 'Options': [ 'string', ] }, ] }, ], 'UserAndGroupQuotas': [ { 'Type': 'USER'|'GROUP', 'Id': 123, 'StorageCapacityQuotaGiB': 123 }, ], 'RestoreToSnapshot': 'string', 'DeleteIntermediateSnaphots': True|False, 'DeleteClonedVolumes': True|False, 'DeleteIntermediateData': True|False, 'SourceSnapshotARN': 'string', 'DestinationSnapshot': 'string', 'CopyStrategy': 'CLONE'|'FULL_COPY'|'INCREMENTAL_COPY' } }, 'TargetSnapshotValues': { 'ResourceARN': 'string', 'SnapshotId': 'string', 'Name': 'string', 'VolumeId': 'string', 'CreationTime': datetime(2015, 1, 1), 'Lifecycle': 'PENDING'|'CREATING'|'DELETING'|'AVAILABLE', 'LifecycleTransitionReason': { 'Message': 'string' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'AdministrativeActions': {'... recursive ...'} }, 'TotalTransferBytes': 123, 'RemainingTransferBytes': 123 }, ], 'OntapConfiguration': { 'AutomaticBackupRetentionDays': 123, 'DailyAutomaticBackupStartTime': 'string', 'DeploymentType': 'MULTI_AZ_1'|'SINGLE_AZ_1'|'SINGLE_AZ_2'|'MULTI_AZ_2', 'EndpointIpAddressRange': 'string', 'Endpoints': { 'Intercluster': { 'DNSName': 'string', 'IpAddresses': [ 'string', ] }, 'Management': { 'DNSName': 'string', 'IpAddresses': [ 'string', ] } }, 'DiskIopsConfiguration': { 'Mode': 'AUTOMATIC'|'USER_PROVISIONED', 'Iops': 123 }, 'PreferredSubnetId': 'string', 'RouteTableIds': [ 'string', ], 'ThroughputCapacity': 123, 'WeeklyMaintenanceStartTime': 'string', 'FsxAdminPassword': 'string', 'HAPairs': 123, 'ThroughputCapacityPerHAPair': 123 }, 'FileSystemTypeVersion': 'string', 'OpenZFSConfiguration': { 'AutomaticBackupRetentionDays': 123, 'CopyTagsToBackups': True|False, 'CopyTagsToVolumes': True|False, 'DailyAutomaticBackupStartTime': 'string', 'DeploymentType': 'SINGLE_AZ_1'|'SINGLE_AZ_2'|'SINGLE_AZ_HA_1'|'SINGLE_AZ_HA_2'|'MULTI_AZ_1', 'ThroughputCapacity': 123, 'WeeklyMaintenanceStartTime': 'string', 'DiskIopsConfiguration': { 'Mode': 'AUTOMATIC'|'USER_PROVISIONED', 'Iops': 123 }, 'RootVolumeId': 'string', 'PreferredSubnetId': 'string', 'EndpointIpAddressRange': 'string', 'RouteTableIds': [ 'string', ], 'EndpointIpAddress': 'string', 'ReadCacheConfiguration': { 'SizingMode': 'NO_CACHE'|'USER_PROVISIONED'|'PROPORTIONAL_TO_THROUGHPUT_CAPACITY', 'SizeGiB': 123 } } }, 'DirectoryInformation': { 'DomainName': 'string', 'ActiveDirectoryId': 'string', 'ResourceARN': 'string' }, 'OwnerId': 'string', 'SourceBackupId': 'string', 'SourceBackupRegion': 'string', 'ResourceType': 'FILE_SYSTEM'|'VOLUME', 'Volume': { 'CreationTime': datetime(2015, 1, 1), 'FileSystemId': 'string', 'Lifecycle': 'CREATING'|'CREATED'|'DELETING'|'FAILED'|'MISCONFIGURED'|'PENDING'|'AVAILABLE', 'Name': 'string', 'OntapConfiguration': { 'FlexCacheEndpointType': 'NONE'|'ORIGIN'|'CACHE', 'JunctionPath': 'string', 'SecurityStyle': 'UNIX'|'NTFS'|'MIXED', 'SizeInMegabytes': 123, 'StorageEfficiencyEnabled': True|False, 'StorageVirtualMachineId': 'string', 'StorageVirtualMachineRoot': True|False, 'TieringPolicy': { 'CoolingPeriod': 123, 'Name': 'SNAPSHOT_ONLY'|'AUTO'|'ALL'|'NONE' }, 'UUID': 'string', 'OntapVolumeType': 'RW'|'DP'|'LS', 'SnapshotPolicy': 'string', 'CopyTagsToBackups': True|False, 'SnaplockConfiguration': { 'AuditLogVolume': True|False, 'AutocommitPeriod': { 'Type': 'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'NONE', 'Value': 123 }, 'PrivilegedDelete': 'DISABLED'|'ENABLED'|'PERMANENTLY_DISABLED', 'RetentionPeriod': { 'DefaultRetention': { 'Type': 'SECONDS'|'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'INFINITE'|'UNSPECIFIED', 'Value': 123 }, 'MinimumRetention': { 'Type': 'SECONDS'|'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'INFINITE'|'UNSPECIFIED', 'Value': 123 }, 'MaximumRetention': { 'Type': 'SECONDS'|'MINUTES'|'HOURS'|'DAYS'|'MONTHS'|'YEARS'|'INFINITE'|'UNSPECIFIED', 'Value': 123 } }, 'SnaplockType': 'COMPLIANCE'|'ENTERPRISE', 'VolumeAppendModeEnabled': True|False }, 'VolumeStyle': 'FLEXVOL'|'FLEXGROUP', 'AggregateConfiguration': { 'Aggregates': [ 'string', ], 'TotalConstituents': 123 }, 'SizeInBytes': 123 }, 'ResourceARN': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'VolumeId': 'string', 'VolumeType': 'ONTAP'|'OPENZFS', 'LifecycleTransitionReason': { 'Message': 'string' }, 'AdministrativeActions': [ { 'AdministrativeActionType': 'FILE_SYSTEM_UPDATE'|'STORAGE_OPTIMIZATION'|'FILE_SYSTEM_ALIAS_ASSOCIATION'|'FILE_SYSTEM_ALIAS_DISASSOCIATION'|'VOLUME_UPDATE'|'SNAPSHOT_UPDATE'|'RELEASE_NFS_V3_LOCKS'|'VOLUME_RESTORE'|'THROUGHPUT_OPTIMIZATION'|'IOPS_OPTIMIZATION'|'STORAGE_TYPE_OPTIMIZATION'|'MISCONFIGURED_STATE_RECOVERY'|'VOLUME_UPDATE_WITH_SNAPSHOT'|'VOLUME_INITIALIZE_WITH_SNAPSHOT'|'DOWNLOAD_DATA_FROM_BACKUP', 'ProgressPercent': 123, 'RequestTime': datetime(2015, 1, 1), 'Status': 'FAILED'|'IN_PROGRESS'|'PENDING'|'COMPLETED'|'UPDATED_OPTIMIZING'|'OPTIMIZING', 'TargetFileSystemValues': { 'OwnerId': 'string', 'CreationTime': datetime(2015, 1, 1), 'FileSystemId': 'string', 'FileSystemType': 'WINDOWS'|'LUSTRE'|'ONTAP'|'OPENZFS', 'Lifecycle': 'AVAILABLE'|'CREATING'|'FAILED'|'DELETING'|'MISCONFIGURED'|'UPDATING'|'MISCONFIGURED_UNAVAILABLE', 'FailureDetails': { 'Message': 'string' }, 'StorageCapacity': 123, 'StorageType': 'SSD'|'HDD'|'INTELLIGENT_TIERING', 'VpcId': 'string', 'SubnetIds': [ 'string', ], 'NetworkInterfaceIds': [ 'string', ], 'DNSName': 'string', 'KmsKeyId': 'string', 'ResourceARN': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'WindowsConfiguration': { 'ActiveDirectoryId': 'string', 'SelfManagedActiveDirectoryConfiguration': { 'DomainName': 'string', 'OrganizationalUnitDistinguishedName': 'string', 'FileSystemAdministratorsGroup': 'string', 'UserName': 'string', 'DnsIps': [ 'string', ] }, 'DeploymentType': 'MULTI_AZ_1'|'SINGLE_AZ_1'|'SINGLE_AZ_2', 'RemoteAdministrationEndpoint': 'string', 'PreferredSubnetId': 'string', 'PreferredFileServerIp': 'string', 'ThroughputCapacity': 123, 'MaintenanceOperationsInProgress': [ 'PATCHING'|'BACKING_UP', ], 'WeeklyMaintenanceStartTime': 'string', 'DailyAutomaticBackupStartTime': 'string', 'AutomaticBackupRetentionDays': 123, 'CopyTagsToBackups': True|False, 'Aliases': [ { 'Name': 'string', 'Lifecycle': 'AVAILABLE'|'CREATING'|'DELETING'|'CREATE_FAILED'|'DELETE_FAILED' }, ], 'AuditLogConfiguration': { 'FileAccessAuditLogLevel': 'DISABLED'|'SUCCESS_ONLY'|'FAILURE_ONLY'|'SUCCESS_AND_FAILURE', 'FileShareAccessAuditLogLevel': 'DISABLED'|'SUCCESS_ONLY'|'FAILURE_ONLY'|'SUCCESS_AND_FAILURE', 'AuditLogDestination': 'string' }, 'DiskIopsConfiguration': { 'Mode': 'AUTOMATIC'|'USER_PROVISIONED', 'Iops': 123 } }, 'LustreConfiguration': { 'WeeklyMaintenanceStartTime': 'string', 'DataRepositoryConfiguration': { 'Lifecycle': 'CREATING'|'AVAILABLE'|'MISCONFIGURED'|'UPDATING'|'DELETING'|'FAILED', 'ImportPath': 'string', 'ExportPath': 'string', 'ImportedFileChunkSize': 123, 'AutoImportPolicy': 'NONE'|'NEW'|'NEW_CHANGED'|'NEW_CHANGED_DELETED', 'FailureDetails': { 'Message': 'string' } }, 'DeploymentType': 'SCRATCH_1'|'SCRATCH_2'|'PERSISTENT_1'|'PERSISTENT_2', 'PerUnitStorageThroughput': 123, 'MountName': 'string', 'DailyAutomaticBackupStartTime': 'string', 'AutomaticBackupRetentionDays': 123, 'CopyTagsToBackups': True|False, 'DriveCacheType': 'NONE'|'READ', 'DataCompressionType': 'NONE'|'LZ4', 'LogConfiguration': { 'Level': 'DISABLED'|'WARN_ONLY'|'ERROR_ONLY'|'WARN_ERROR', 'Destination': 'string' }, 'RootSquashConfiguration': { 'RootSquash': 'string', 'NoSquashNids': [ 'string', ] }, 'MetadataConfiguration': { 'Iops': 123, 'Mode': 'AUTOMATIC'|'USER_PROVISIONED' }, 'EfaEnabled': True|False, 'ThroughputCapacity': 123, 'DataReadCacheConfiguration': { 'SizingMode': 'NO_CACHE'|'USER_PROVISIONED'|'PROPORTIONAL_TO_THROUGHPUT_CAPACITY', 'SizeGiB': 123 } }, 'AdministrativeActions': {'... recursive ...'}, 'OntapConfiguration': { 'AutomaticBackupRetentionDays': 123, 'DailyAutomaticBackupStartTime': 'string', 'DeploymentType': 'MULTI_AZ_1'|'SINGLE_AZ_1'|'SINGLE_AZ_2'|'MULTI_AZ_2', 'EndpointIpAddressRange': 'string', 'Endpoints': { 'Intercluster': { 'DNSName': 'string', 'IpAddresses': [ 'string', ] }, 'Management': { 'DNSName': 'string', 'IpAddresses': [ 'string', ] } }, 'DiskIopsConfiguration': { 'Mode': 'AUTOMATIC'|'USER_PROVISIONED', 'Iops': 123 }, 'PreferredSubnetId': 'string', 'RouteTableIds': [ 'string', ], 'ThroughputCapacity': 123, 'WeeklyMaintenanceStartTime': 'string', 'FsxAdminPassword': 'string', 'HAPairs': 123, 'ThroughputCapacityPerHAPair': 123 }, 'FileSystemTypeVersion': 'string', 'OpenZFSConfiguration': { 'AutomaticBackupRetentionDays': 123, 'CopyTagsToBackups': True|False, 'CopyTagsToVolumes': True|False, 'DailyAutomaticBackupStartTime': 'string', 'DeploymentType': 'SINGLE_AZ_1'|'SINGLE_AZ_2'|'SINGLE_AZ_HA_1'|'SINGLE_AZ_HA_2'|'MULTI_AZ_1', 'ThroughputCapacity': 123, 'WeeklyMaintenanceStartTime': 'string', 'DiskIopsConfiguration': { 'Mode': 'AUTOMATIC'|'USER_PROVISIONED', 'Iops': 123 }, 'RootVolumeId': 'string', 'PreferredSubnetId': 'string', 'EndpointIpAddressRange': 'string', 'RouteTableIds': [ 'string', ], 'EndpointIpAddress': 'string', 'ReadCacheConfiguration': { 'SizingMode': 'NO_CACHE'|'USER_PROVISIONED'|'PROPORTIONAL_TO_THROUGHPUT_CAPACITY', 'SizeGiB': 123 } } }, 'FailureDetails': { 'Message': 'string' }, 'TargetVolumeValues': {'... recursive ...'}, 'TargetSnapshotValues': { 'ResourceARN': 'string', 'SnapshotId': 'string', 'Name': 'string', 'VolumeId': 'string', 'CreationTime': datetime(2015, 1, 1), 'Lifecycle': 'PENDING'|'CREATING'|'DELETING'|'AVAILABLE', 'LifecycleTransitionReason': { 'Message': 'string' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'AdministrativeActions': {'... recursive ...'} }, 'TotalTransferBytes': 123, 'RemainingTransferBytes': 123 }, ], 'OpenZFSConfiguration': { 'ParentVolumeId': 'string', 'VolumePath': 'string', 'StorageCapacityReservationGiB': 123, 'StorageCapacityQuotaGiB': 123, 'RecordSizeKiB': 123, 'DataCompressionType': 'NONE'|'ZSTD'|'LZ4', 'CopyTagsToSnapshots': True|False, 'OriginSnapshot': { 'SnapshotARN': 'string', 'CopyStrategy': 'CLONE'|'FULL_COPY'|'INCREMENTAL_COPY' }, 'ReadOnly': True|False, 'NfsExports': [ { 'ClientConfigurations': [ { 'Clients': 'string', 'Options': [ 'string', ] }, ] }, ], 'UserAndGroupQuotas': [ { 'Type': 'USER'|'GROUP', 'Id': 123, 'StorageCapacityQuotaGiB': 123 }, ], 'RestoreToSnapshot': 'string', 'DeleteIntermediateSnaphots': True|False, 'DeleteClonedVolumes': True|False, 'DeleteIntermediateData': True|False, 'SourceSnapshotARN': 'string', 'DestinationSnapshot': 'string', 'CopyStrategy': 'CLONE'|'FULL_COPY'|'INCREMENTAL_COPY' } }, 'SizeInBytes': 123 } }
Response Structure
# This section is too large to render. # Please see the AWS API Documentation linked below.
Exceptions
FSx.Client.exceptions.BadRequest
FSx.Client.exceptions.BackupNotFound
FSx.Client.exceptions.ServiceLimitExceeded
FSx.Client.exceptions.UnsupportedOperation
FSx.Client.exceptions.IncompatibleParameterError
FSx.Client.exceptions.InternalServerError
FSx.Client.exceptions.InvalidSourceKmsKey
FSx.Client.exceptions.InvalidDestinationKmsKey
FSx.Client.exceptions.InvalidRegion
FSx.Client.exceptions.SourceBackupUnavailable
FSx.Client.exceptions.IncompatibleRegionForMultiAZ
Examples
This operation copies an Amazon FSx backup.
response = client.copy_backup( SourceBackupId='backup-03e3c82e0183b7b6b', SourceRegion='us-east-2', ) print(response)
Expected Output:
{ 'Backup': { 'BackupId': 'backup-0a3364eded1014b28', 'CreationTime': 1617954808.068, 'FileSystem': { 'FileSystemId': 'fs-0498eed5fe91001ec', 'FileSystemType': 'LUSTRE', 'LustreConfiguration': { 'AutomaticBackupRetentionDays': 0, 'DeploymentType': 'PERSISTENT_1', 'PerUnitStorageThroughput': 50, 'WeeklyMaintenanceStartTime': '1:05:00', }, 'ResourceARN': 'arn:aws:fsx:us-east-1:012345678912:file-system/fs-0f5179e395f597e66', 'StorageCapacity': 2400, 'StorageType': 'SSD', }, 'KmsKeyId': 'arn:aws:fsx:us-east-1:012345678912:key/d1234e22-543a-12b7-a98f-e12c2b54001a', 'Lifecycle': 'COPYING', 'OwnerId': '123456789012', 'ResourceARN': 'arn:aws:fsx:us-east-1:012345678912:backup/backup-0a3364eded1014b28', 'Tags': [ { 'Key': 'Name', 'Value': 'MyBackup', }, ], 'Type': 'USER_INITIATED', }, 'ResponseMetadata': { '...': '...', }, }