| Did this page help you? Yes No Tell us about it... |
Amazon RDS can automatically back up all of your DB Instances. You can set the backup retention period when you create a DB Instance. If you don't set the backup retention period, Amazon RDS uses a default period retention period of one day (Amazon RDS does not charge for a backup retention period of one day). You can modify the backup retention period; valie values are 0 (for no backup retention) to a maximum of 8 days.
In this example, you will enable and then disable backups for an existing DB Instance called mydbinstance.
You may want to temporarily disable automated backups in certain situations; for example, while loading large amounts of data.
![]() | Important |
|---|---|
We highly discourage disabling automated backups because it disables point-in-time recovery. If you disable and then re-enable automated backups, you are only able to restore starting from the time you re-enabled automated backups. |
In these examples, you disable automated backups for a DB Instance by setting the backup retention parameter to 0.
To disable automated backups immediately
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.
In the My DB Instances list, select the check box next to the DB Instance you want to delete.
Click the Modify button.
The Modify DB Instance window appears.
Select 0 in the Backup Retention Period drop-down list box.
Check the Apply Immediately check box.
Click the OK button.
To disable automated backups immediately
Set the backup retention period to 0.
PROMPT>rds-modify-db-instance mydbinstance --backup-retention-period 0 --apply-immediately
Call rds-describe-db-instances for the DB Instance
until the value for backup retention period is 0 and mydbinstance status is
available.
PROMPT>rds-describe-db-instances mydbinstance --headers
To disable automated backups immediately
Call ModifyDBInstance with the following
parameters:
DBInstanceIdentifier =
mydbinstance
BackupRetentionPeriod =
0
Example
https://rds.amazonaws.com/ ?Action=ModifyDBInstance &DBInstanceIdentifier=mydbinstance &BackupRetentionPeriod=0 &SignatureVersion=2 &SignatureMethod=HmacSHA256 &Timestamp=2009-10-14T17%3A48%3A21.746Z &AWSAccessKeyId=<AWS Access Key ID> &Signature=<Signature>
If your DB Instance doesn't have automated backups enabled, you can enable them at any time. The same request used to disable automated backups can be used to enable them by using a non-zero value for the backup retention period. When automated backups are enabled, a backup is immediately created.
In this example, you enable automated backups for a DB Instance by setting the backup retention period parameter for the DB Instance to a non-zero value (in this case, 3).
To enable automated backups immediately
Launch the AWS Management Console.
Go to the AWS Management Console web page.
Select Amazon RDS from the drop-down list under the Sign in to the AWS Console button, and then click the Sign in to the AWS Console button.
In the My DB Instances list, select the check box next to the DB Instance you wish to delete.
Click the Modify button or right-click the DB Instance and select Modify from the context menu.
The Modify DB Instance window appears.
Select 3 in the Backup Retention Period drop-down list box.
Check the Apply Immediately check box.
Click the OK button.
To enable automated backups immediately
In this example, we will enable automated backups by setting the backup retention period to 3.
Set the backup retention period to 3.
PROMPT>rds-modify-db-instance mydbinstance --backup-retention-period 3 --apply-immediately
To enable automated backups immediately
Call ModifyDBInstance with the following
parameters:
DBInstanceIdentifier =
mydbinstance
BackupRetentionPeriod =
3
ApplyImmediately =
true
Example
https://rds.amazonaws.com/ ?Action=ModifyDBInstance &DBInstanceIdentifier=mydbinstance &BackupRetentionPeriod=3 &ApplyImmediately=true &SignatureVersion=2 &SignatureMethod=HmacSHA256 &Timestamp=2009-10-14T17%3A48%3A21.746Z &AWSAccessKeyId=<AWS Access Key ID> &Signature=<Signature>