Difference between revisions of "Aws rds create-db-snapshot"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | <code>aws rds create-db-snapshot</code> creates a snapshot of a DB instance. The source DB instance must be in the <code>[[available]]</code> or <code>[[storage-optimization]]</code> state. | + | <code>[[aws rds]] create-db-snapshot</code> creates a snapshot of a DB instance. The source DB instance must be in the <code>[[available]]</code> or <code>[[storage-optimization]]</code> state. |
* https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/create-db-snapshot.html | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/create-db-snapshot.html | ||
Line 6: | Line 6: | ||
--db-instance-identifier database-mysql \ | --db-instance-identifier database-mysql \ | ||
--db-snapshot-identifier mydbsnapshot | --db-snapshot-identifier mydbsnapshot | ||
+ | |||
+ | == Official example == | ||
+ | <pre> | ||
+ | aws rds create-db-snapshot \ | ||
+ | --db-instance-identifier database-mysql \ | ||
+ | --db-snapshot-identifier mydbsnapshot | ||
+ | |||
+ | { | ||
+ | "DBSnapshot": { | ||
+ | "DBSnapshotIdentifier": "mydbsnapshot", | ||
+ | "DBInstanceIdentifier": "database-mysql", | ||
+ | "Engine": "mysql", | ||
+ | "AllocatedStorage": 100, | ||
+ | "Status": "creating", | ||
+ | "Port": 3306, | ||
+ | "AvailabilityZone": "us-east-1b", | ||
+ | "VpcId": "vpc-6594f31c", | ||
+ | "InstanceCreateTime": "2019-04-30T15:45:53.663Z", | ||
+ | "MasterUsername": "admin", | ||
+ | "EngineVersion": "5.6.40", | ||
+ | "LicenseModel": "general-public-license", | ||
+ | "SnapshotType": "manual", | ||
+ | "Iops": 1000, | ||
+ | "OptionGroupName": "default:mysql-5-6", | ||
+ | "PercentProgress": 0, | ||
+ | "StorageType": "io1", | ||
+ | "Encrypted": true, | ||
+ | "KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE", | ||
+ | "DBSnapshotArn": "arn:aws:rds:us-east-1:123456789012:snapshot:mydbsnapshot", | ||
+ | "IAMDatabaseAuthenticationEnabled": false, | ||
+ | "ProcessorFeatures": [], | ||
+ | "DbiResourceId": "db-AKIAIOSFODNN7EXAMPLE" | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
== Related == | == Related == |
Latest revision as of 06:13, 2 August 2022
aws rds create-db-snapshot
creates a snapshot of a DB instance. The source DB instance must be in the available
or storage-optimization
state.
aws rds create-db-snapshot \ --db-instance-identifier database-mysql \ --db-snapshot-identifier mydbsnapshot
Official example[edit]
aws rds create-db-snapshot \ --db-instance-identifier database-mysql \ --db-snapshot-identifier mydbsnapshot { "DBSnapshot": { "DBSnapshotIdentifier": "mydbsnapshot", "DBInstanceIdentifier": "database-mysql", "Engine": "mysql", "AllocatedStorage": 100, "Status": "creating", "Port": 3306, "AvailabilityZone": "us-east-1b", "VpcId": "vpc-6594f31c", "InstanceCreateTime": "2019-04-30T15:45:53.663Z", "MasterUsername": "admin", "EngineVersion": "5.6.40", "LicenseModel": "general-public-license", "SnapshotType": "manual", "Iops": 1000, "OptionGroupName": "default:mysql-5-6", "PercentProgress": 0, "StorageType": "io1", "Encrypted": true, "KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE", "DBSnapshotArn": "arn:aws:rds:us-east-1:123456789012:snapshot:mydbsnapshot", "IAMDatabaseAuthenticationEnabled": false, "ProcessorFeatures": [], "DbiResourceId": "db-AKIAIOSFODNN7EXAMPLE" } }
Related[edit]
aws rds restore-db-instance-from-db-snapshot
aws rds restore-db-instance-to-point-in-time
- Terraform resource: aws_db_snapshot
aws rds describe-db-cluster-snapshots
See also[edit]
- AWS RDS Snapshots:
aws rds [ create-db-snapshot | create-db-cluster-snapshot | describe-db-cluster-snapshots | restore-db-instance-from-db-snapshot | delete-db-snapshot ]
- AWS RDS:
AWS::RDS
,aws rds
[create-db-instance | create-db-instance-read-replica
|describe-db-instances
|modify-db-instance | modify-db-cluster | create-db-subnet-group
|delete-db-instance
|create-db-snapshot | aws rds create-db-parameter-group
],AllocatedStorage, FreeStorageSpace
- Snapshot,
mysqldump, mariabackup, mongodump, aws ebs start-snapshot, aws rds create-db-snapshot, aws rds restore-db-cluster-from-snapshot, aws rds promote-read-replica, aws rds promote-read-replica-db-cluster
, Elasticsearch snapshots, Kubernetes Volume Group Snapshots API, EC2 snapshots,lvcreate --snapshot
Advertising: