CmdID / aws / aws dynamodb
aws dynamodb create-backup
Creates a backup for an existing table. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To create a backup for an existing DynamoDB table
The following create-backup example creates a backup of the MusicCollection table.
aws dynamodb create-backup --table-name MusicCollection --backup-name MusicCollectionBackupIdentify--table-nameThe name of the table.--backup-nameSpecified name for the backup.Its output
{
"BackupDetails": {
"BackupArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/backup/01576616366715-b4e58d3a",
"BackupName": "MusicCollectionBackup",
"BackupSizeBytes": 0,
"BackupStatus": "CREATING",
"BackupType": "USER",
"BackupCreationDateTime": 1576616366.715
}
}For more information, see Backup and restore for DynamoDB in the Amazon DynamoDB Developer Guide.
Options
--backup-nameSpecified name for the backup.--table-nameThe name of the table.