liveBook · Manning

Automated snapshot

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

An automated snapshot is a database snapshot created automatically by a managed database service according to a configured schedule and retention policy.

An automated snapshot is an RDS database backup created once daily during a configured window and retained for a configured number of days. Set BackupRetentionPeriod from 1 to 35 days; setting it to 0 disables automated backups. section 10.3.1 section 10.3

Choose a low-traffic backup window because RDS briefly freezes disk activity, potentially delaying requests or causing timeouts. If no window is specified, RDS selects a changing 30-minute period during the night. section 10.3.1

Manage automated snapshots with these rules:

  • Configure the retention period and backup window through CloudFormation, the Management Console, or SDKs. section 10.3.1
  • Expect automated snapshots to disappear after the retention period or when the RDS instance is deleted. section 10.3.1 section 10.3.2
  • Copy an automated snapshot to a manual snapshot when it must outlive the automated retention period. section 10.3.2
  • Restore an automated snapshot to a new database instance or select a point within the retention period, potentially as recent as five minutes ago. section 10.3.3

WordPress database protection

Set a three-day retention period and a 05:00–06:00 UTC backup window for a WordPress RDS database. If accidental deletion or hardware failure damages the data, restore a database from a snapshot or from a chosen recent point in time. section 10.3.1 section 10.3.3

Listing 10.3 Modifying an RDS database’s snapshot time frame and retention time
Database:
  Type: 'AWS::RDS::DBInstance'
  DeletionPolicy: Delete
  Properties:
    AllocatedStorage: 5
    BackupRetentionPeriod: 3               #1
    PreferredBackupWindow: '05:00-06:00'   #2
    DBInstanceClass: 'db.t2.micro'
    DBName: wordpress
    Engine: MySQL
    MasterUsername: wordpress
    MasterUserPassword: wordpress
    VPCSecurityGroups:
    - !Sub ${DatabaseSecurityGroup.GroupId}
    DBSubnetGroupName: !Ref DBSubnetGroup
  DependsOn: VPCGatewayAttachment

Shows the smallest CloudFormation change for a three-day retention period and a 05:00–06:00 UTC backup window. section 10.3.1

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Explains retention, scheduling, operational disruption, deletion behavior, manual copying, and point-in-time restoration without detailing snapshot internals.
Examples
Uses a WordPress RDS database, a three-day policy, a UTC backup window, manual snapshot copying, and recent-time restoration.
What it assumes
Assumes an RDS database and basic AWS CLI or CloudFormation familiarity while teaching retention, scheduling, copying, and restoration workflows.
What you can do after
Operate/configure RDS backups, preserve snapshots manually, and restore databases from snapshots or selected recent points in time.
How it connects
Connects RDS backups with manual snapshots, CloudFormation, AWS CLI, and point-in-time recovery.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.