CmdID / aws / aws lightsail
aws lightsail create-relational-database-snapshot
Creates a snapshot of your database in Amazon Lightsail. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To create a snapshot of a managed database
The following create-relational-database-snapshot example creates a snapshot of the specified managed database.
aws lightsail create-relational-database-snapshot --relational-database-name Database1 --relational-database-snapshot-name RelationalDatabaseSnapshot1Identify--relational-database-nameThe name of the database on which to base your new snapshot.--relational-database-snapshot-nameThe name for your new database snapshot.Its output, shortened
{
"operations": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"resourceName": "RelationalDatabaseSnapshot1",
"resourceType": "RelationalDatabaseSnapshot",
"createdAt": 1569868074.645,
"location": {
"availabilityZone": "all",
"regionName": "us-west-2"
},
"isTerminal": false,
"operationDetails": "Database1",
"operationType": "CreateRelationalDatabaseSnapshot",
"status": "Started",
"statusChangedAt": 1569868074.645
},
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"resourceName": "Database1",
"resourceType": "RelationalDatabase",
"createdAt": 1569868074.645,
"location": {
"availabilityZone": "us-west-2a",
"regionName": "us-west-2"
},
"isTerminal": false,
"operationDetails": "RelationalDatabaseSnapshot1",
"operationType": "CreateRelationalDatabaseSnapshot",
"status": "Started",
… 4 more linesFor more information, see Back up your Lightsail database with snapshots in the Amazon Lightsail User Guide.
Options
--relational-database-nameThe name of the database on which to base your new snapshot.--relational-database-snapshot-nameThe name for your new database snapshot.--tagsThe tag keys and optional values to add to the resource during create.