AWS Certified SysOps Administrator - Associate
Domain 2 Reliability and BCP
Demo Configuring RDS Snapshots for your Database
Welcome back, students!
In this lesson, we will walk through configuring automated backups and snapshots for an Amazon RDS PostgreSQL database instance. Although the instance is later promoted to a standalone database, it originally comes from a multi-AZ DB cluster with two read replicas. Remember, this is a multi-AZ DB cluster configuration—not a simple multi-AZ DB instance with a single replica and writer.
The critical distinction here is that the database cluster supports reading backups, whereas an instance cluster does not. For this lesson, our focus is on enabling and configuring the backups and snapshots for the instance.
Accessing Backup Settings
Next, navigate to the backup settings in the AWS RDS console. At first glance, you might notice that the backup sub-tab is not configured. Follow these steps to modify the settings:
- Scroll down to the backup section.
- (Optional) Integrate with Secrets Manager if needed. However, our current focus is on backup configurations.
- Enable automated backups by setting a retention period of seven days.
- Choose an appropriate maintenance window for the backups.
- Optionally, enable cross-region replication if you require it.
Other features, such as tagging snapshots and exporting logs, are available but not needed for this configuration. Our primary goal is to enable automated backups. In this case, the retention period was initially set to zero days. Once you update the setting, click "Continue" to proceed with the modifications. The changes will be applied immediately.
Monitoring the Backup Process
After making these changes, the AWS backplane processes the modification request. You might see a temporary "modifying" status in the console, which you can track under the logs and events tabs. Initially, there may be no events, but shortly, an entry will be added indicating that the database instance is being backed up.
If you check the logs and events, you should see an update stating that the system is backing up the database instance. Although the instance may restart to enable replication and the new backup settings, the AWS console might take a moment to update. Under the maintenance and backups section, you should eventually see that the seven-day backup retention is active. Even if there is no latest restore time and regional replication is inactive at the moment, a current snapshot is being created.
Note
Once the snapshot process is complete, the backup details will be fully displayed in the console. You can also initiate a manual snapshot later, if needed.
Important Considerations
- While the instance is being modified, further configuration changes are temporarily blocked. This safeguard prevents conflicts until the current modification process is finalized.
- Configuring automated backups and snapshots in RDS is straightforward. It mainly involves setting the appropriate backup retention period and maintenance window.
That concludes our lesson on configuring automated snapshots and backups for an Amazon RDS PostgreSQL instance. Happy learning, and see you in the next article!
For more information on managing AWS RDS, please refer to the AWS Documentation.
Watch Video
Watch video content