Amazon Relational Database Service
User Guide (API Version 2013-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Creating a DB Snapshot

When you create a DB snapshot, you need to identify which DB instance you are going to back up, and then give your DB snapshot a name so you can restore from it later.

Note

Creating a DB snapshot creates a backup of your DB instance. Creating this backup on a Single-AZ DB instance results in a brief I/O suspension that typically lasting no more than a few minutes. Multi-AZ DB instances are not effected by this I/O suspension since the backup is taken on the standby.

In this example, you create a DB snapshot called mydbsnapshot for a DB instance called mydbinstance.

AWS Management Console

To create a DB snapshot

  1. Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the navigation pane, click DB Instances.

  3. Click Instance Actions, and then click Take DB Snapshot.

    The Take DB Snapshot window appears.

  4. Type the name of the snapshot in the Snapshot Name text box.

    Console db snapshot edit db

  5. Click Yes, Take Snapshot.

CLI

To create a DB snapshot

  • Use the command rds-create-db-snapshot to create a database snapshot.

    PROMPT>rds-create-db-snapshot -i mydbinstance -s mydbsnapshot

    The output from this command should look similar to the following:

    DBSNAPSHOT  mydbsnapshot  mydbinstance  2009-10-21T01:54:49.521Z  MySQL     50
    creating  sa  5.1.57 general-public-license
    				

API

To create a DB snapshot

  • Call CreateDBSnapshot with the following parameters:

    • DBSnapshotIdentifier = mydbsnapshot

    • DBInstanceIdentifier = mydbinstance

    Example

    https://rds.amazon.com/
    	?Action=CreateDBSnapshot
    	&DBSnapshotIdentifier=mydbsnapshot
    	&DBInstanceIdentifier=mydbinstance
    	&SignatureVersion=2
    	&SignatureMethod=HmacSHA256
    	&Timestamp=2009-10-14T17%3A48%3A21.746Z
    	&AWSAccessKeyId=<AWS Access Key ID>
    	&Signature=<Signature>