liveBook · Manning

Backup and restore

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

A backup is a stored copy of data intended for recovery after data loss or corruption.

A backup is a stored copy of data used to recover after loss, corruption, accidental deletion, or disaster. Keeping a copy offsite reduces the risk that one event destroys both the original and its recovery data. AWS provides several approaches: S3 stores objects, EBS provides durable block storage, and managed databases provide service-specific recovery features. section 7.3 section 8.2.3

A simple S3 backup and restore workflow is:

  • Copy a local directory into a backup prefix with `aws s3 sync`; the command uploads only new or changed files. section 7.3

Choose the storage method according to the workload. Instance store volumes have no built-in backup mechanism, so scheduled jobs can periodically synchronize their data to S3; for data requiring durable block-level storage, EBS is the better choice. RDS supplies on-demand snapshots and point-in-time restore within a retention period of up to 35 days. DynamoDB replicates data for durability but still benefits from on-demand snapshots that recover from accidental deletion or application-caused corruption. section 8.2.3 section 10.8 section 12.10

Recovering a web application's files

A web application can synchronize its local backup directory to an S3 bucket, then restore the contents into a new local directory when the original files are lost. Keep the bucket name unique, avoid unexpectedly large test uploads, and account for storage and transfer charges. section 7.3

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

How deep it goes
Explains S3 synchronization, restoration, versioning, and storage choices, while outlining managed database recovery limits.
Examples
Demonstrates bucket creation, directory synchronization, recursive restoration, versioning, and scheduled instance-store backups.
What it assumes
Assumes basic local files and directories, then teaches the required S3 bucket and AWS CLI operations from the workflow.
What you can do after
Apply it via AWS CLI by creating an S3 bucket, synchronizing files, restoring directories, and enabling versioning.
How it connects
Connects S3 with AWS CLI, versioning, EBS, instance store, RDS, DynamoDB, scheduled jobs, and point-in-time recovery.

Also explained in

Compare how 10 books explain backup and restore →

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.