Backup strategy and RPO/RTO
Quick answer
Recovery point objective (RPO) is the tolerable loss of recent data, while recovery time objective (RTO) is the target time to restore service. They guide backup frequency and recovery design.
Prepare the practice environment
Run python3 lab-fixtures/backup/setup.py from the extracted root as an ordinary user. Enter the printed fresh private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. Only disposable regular files may be written. Optional examples require an authorized snapshot VM. Never substitute real devices, mount remote shares or change storage configuration. Review the lab guide.
How it works
A full backup contains the selected dataset; an incremental backup captures changes relative to prior backup state and may require a chain or repository metadata for restoration. Deduplication reduces repeated storage, not the need to verify recovery. A common 3-2-1 baseline is three copies including production, on two media types, with one offsite. Add offline or immutable retention where suitable, separate credentials, encryption and monitored jobs. With hourly successful backups, data loss can approach an hour; failed jobs may increase it. RTO includes detection, provisioning, restore, validation and service cutover. The synthetic incident uses minutes since midnight, so arithmetic is reproducible and independent of the current clock.
If a scheduled backup fails, measure the recovery point from the last usable copy, not the most recent scheduled time. For a service with a 30-minute RPO, a usable copy from 45 minutes before an incident misses the target by 15 minutes. A 90-minute verified recovery meets a 120-minute RTO by 30 minutes. These figures are fictional; measure actual restore and service validation time before making a reliability claim.
Try the examples
awk 'NR==2 {print $2-$1, "minutes"}' incident.txtThe last usable backup precedes the incident by 45 minutes. Compare with a target RPO of 30 minutes: it fails.
Expected stdout:
45 minutesThe modeled recovery took 90 minutes; a two-hour RTO is met.
Expected stdout:
90 minutesmkdir backup-copyrsync -ani data/ backup-copy/ > preview.txttest ! -e backup-copy/report.txtgrep -F 'report.txt' preview.txt >/dev/nullprintf 'preview only\n'A dry-run previews the copy, but creates no backup data. Plan versions and independent retention separately.
Expected stdout:
preview onlyCommon mistakes
A successful copy is not proof of meeting RPO/RTO. A mirror without retention can reproduce mistakes. Never promise recovery targets without drills.
Practice
For a service with 30-minute RPO and two-hour RTO, explain why the supplied incident fails one objective. Propose a more frequent backup and alert on missed runs, plus an offsite retained copy.
Related references
Study: rsync. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Backup strategy and RPO/RTO — Knowledge Check
Apply advanced storage and backup concepts to synthetic fixtures and VM-only scenarios.
What does RPO constrain?
What does RTO constrain?
A 45-minute recovery gap against a 30-minute RPO is what?
What can make a nominal hourly schedule miss a one-hour RPO?