Tuesday, June 3, 2025

Amazon RDS Backups

 

Amazon RDS Backups – Concept, Features, Benefits, Limitations & Use Cases

 Concept

Amazon RDS automatically creates and manages backups of twtech database instances, enabling point-in-time recovery (PITR). These backups include:

  1. Automated Backups – Managed by AWS, include full snapshots and transaction logs.
  2. Manual Snapshots – twtec-User initiats backups that persist until deleted.

These backups are stored in Amazon S3 and are region-specific.

 Types of Backups

Backup Type

Description

Automated Backups

Full daily backup + continuous transaction log backups. Retained for a set period (1–35 days).

Manual Snapshots

User-initiated backups; not automatically deleted. Useful for long-term retention.

 Key Features

Feature

Details

Automatic backup window

Specify a preferred time for backups (minimize performance impact).

Point-in-time recovery

Restore to any second within the backup retention window.

Storage auto-scaling

Backup storage scales automatically based on database size.

Encrypted backups

Backups inherit the encryption status of the source DB.

Cross-region snapshot copy

Manually copy snapshots to other AWS regions for DR.

Retention period

1 to 35 days (automated backups); indefinite for manual snapshots.

DB snapshot sharing

Snapshots can be shared with other AWS accounts.

Benefits

Benefit

Description

Managed service

No need to script or schedule backup jobs.

Point-in-time restore

Minimize data loss in disaster recovery scenarios.

Durable & secure

Backups stored in highly durable S3 and encrypted at rest.

Cost-effective

Backup storage up to the size of the DB is free during retention.

Compliance

Supports regulatory requirements for data protection.

Snapshot portability

Snapshots can be copied across regions/accounts.

 Limitations

Limitation

Description

PITR granularity

Only within the automated retention window (max 35 days).

No PITR for some engines

Aurora uses a different backup mechanism (continuous snapshots).

Region-specific

Automated backups cannot be restored in another region unless snapshot is copied.

Manual snapshots only deleted manually

Requires lifecycle management if storing long-term.

Initial backup impact

Full backup can slightly impact performance (scheduled during backup window).

 Use Cases

Use Case

Description

Disaster Recovery

Restore to last known good state after corruption, deletion, or outage.

Data Audit / Forensics

Recover historical data for audit or analysis.

Dev/Test Cloning

Create test environments from snapshots.

Cross-region DR

Copy snapshots to another region for regional failover planning.

Compliance Archiving

Retain manual snapshots for regulatory purposes.

 Best Practices

  1. Set appropriate backup retention – Balance recovery window and cost.
  2. Monitor backup status – Use CloudWatch and RDS events.
  3. Test restore processes – Regularly verify that recovery works as expected.
  4. Use tagging – Tag snapshots for automated lifecycle management or billing.
  5. Encrypt backups – Especially for sensitive workloads.
  6. Automate manual snapshot lifecycle – Via Lambda or AWS Backup.

 Pricing

  • Automated backups: Free up to the size of twtech DB.
  • Manual snapshots: Charged by GB/month.
  • Snapshot copy: Charged for data transfer and storage.
  • Backup storage beyond free allocation: Charged based on region and size.

No comments:

Post a Comment

Kubernetes Clusters | Upstream Vs Downstream.

  The terms "upstream" and "downstream" in the context of Kubernetes clusters often refer to the direction of code fl...