TEC-DATA86-04 · Lesson 1 · 10 clock hours · theory
Backup Fundamentals: RTO, RPO, and Backup Types
Objective. Students will define RTO, RPO, full, incremental, differential, and transaction-log backup types and match each to a realistic business scenario.
⚠ Pending professional review
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
Why Backup Planning Matters
Every database stores information that someone depends on — patient schedules, customer orders, financial records, or nonprofit donor lists. Hardware fails, human errors happen, and ransomware attacks are real threats. A well-designed backup strategy means the difference between a brief inconvenience and a catastrophic, organization-ending loss. Before choosing any backup tool or writing a single script, a database administrator (DBA) must understand two foundational planning metrics: Recovery Time Objective (RTO) and Recovery Point Objective (RPO).
Recovery Time Objective (RTO)
RTO is the maximum acceptable length of time a system can be offline after a failure before the outage causes unacceptable harm to the business. It is always expressed as a duration — for example, four hours or fifteen minutes.
A hospital scheduling system might have an RTO of one hour because staff can manage paper records briefly, but longer downtime disrupts patient care. A small nonprofit sending a monthly newsletter might tolerate a 24-hour RTO because operations are less time-sensitive. RTO drives decisions about how fast your recovery process must work, which affects choices like whether you need a warm standby server or whether restoring from tape is acceptable.
Recovery Point Objective (RPO)
RPO is the maximum amount of data loss, measured in time, that the business can tolerate. It answers the question: "If disaster strikes right now, how old can our most recent good data be?"
An e-commerce site processing orders every minute may have an RPO of five minutes — losing more than five minutes of transactions means losing real money and customer trust. A nonprofit that updates its donor list weekly might accept an RPO of 24 hours. RPO drives decisions about how often you back up and whether you archive transaction logs continuously.
RPO and RTO are set by business stakeholders, not by the DBA alone. The DBA's job is to design a technical solution that meets both targets within budget.
Full Backups
A full backup copies every data block in the database at a point in time. It is the simplest backup to restore from because all the data is in one place. The drawbacks are that full backups take the longest to complete and consume the most storage. Most organizations do not run full backups every hour; they use full backups as a foundation and layer faster, smaller backup types on top.
Incremental Backups
An incremental backup copies only the data blocks or files that have changed since the last backup of any kind — whether that was a full or a previous incremental. Each incremental is small and fast to create. The trade-off is that restoring requires the last full backup plus every incremental taken since then, applied in sequence. The more incrementals you stack, the longer and more complex a restore becomes.
PostgreSQL continuous archiving, described in the PostgreSQL documentation chapter on continuous archiving and point-in-time recovery (PITR), uses archived Write-Ahead Log (WAL) segment files alongside a base backup — a model that functions similarly to incremental recovery.
Differential Backups
A differential backup copies all data that has changed since the last full backup, regardless of any differentials taken in between. Each differential grows larger over time as more changes accumulate, but restore requires only two pieces: the last full backup and the most recent differential. This simplifies recovery compared to stacking many incrementals.
Transaction-Log Backups
Relational databases record every change in a transaction log (called the redo log in Oracle, the WAL in PostgreSQL, and the transaction log in SQL Server). A transaction-log backup copies the log records generated since the last log backup. Transaction-log backups enable point-in-time recovery (PITR) — restoring the database to any moment captured in the log, not just the moment a full or differential backup was taken. This is the primary way to achieve very low RPOs. Oracle RMAN, PostgreSQL WAL archiving, and Microsoft SQL Server all support transaction-log-level recovery.
Matching Backup Types to Business Needs
No single backup type is universally best. DBAs combine types into a backup strategy:
- High-RPO / High-RTO tolerance (small nonprofit): Weekly full backup may be sufficient, with differentials mid-week.
- Moderate requirements (hospital scheduling): Nightly full backups with transaction-log backups every 15–30 minutes to limit data loss while keeping restore straightforward.
- Low RPO / Low RTO (e-commerce): Nightly full backup, hourly differentials or incrementals, and continuous transaction-log archiving — combined with a standby server — to meet a five-minute RPO and a sub-one-hour RTO.
Safety and Professional Responsibility
Backup files often contain sensitive personal data — patient records, payment card information, or Social Security numbers. DBAs must:
- Encrypt backup files at rest and in transit; unencrypted backup media is a data breach waiting to happen.
- Follow your organization's data classification and retention policies.
- Store at least one backup copy offsite or in a separate cloud region to protect against fire, flood, or ransomware that encrypts local storage.
- Test restores regularly — an untested backup is not a backup. Schedule periodic restore drills and document the results.
- Control access to backup media and storage buckets using the principle of least privilege.
These practices are not optional best-practice suggestions; they are professional obligations and, depending on industry, may be required by law (such as HIPAA for healthcare data).
Key terms8
Recovery Time Objective (RTO)The maximum acceptable duration a system may be offline after a failure before the business suffers unacceptable harm.
Recovery Point Objective (RPO)The maximum amount of data loss, measured in time, that the business can tolerate in the event of a failure.
Full BackupA backup that copies every data block or file in the database at a single point in time, serving as the foundation for all other backup types.
Incremental BackupA backup that copies only the data changed since the last backup of any type, producing small files but requiring all previous incrementals for a complete restore.
Differential BackupA backup that copies all data changed since the last full backup; restore requires only the full backup and the most recent differential.
Transaction-Log BackupA backup of the database's transaction log records since the last log backup, enabling point-in-time recovery to any logged moment.
Point-in-Time Recovery (PITR)The ability to restore a database to any specific moment captured in archived transaction logs, not just the time of a full or differential backup.
Write-Ahead Log (WAL)PostgreSQL's transaction log mechanism that records every change before it is applied to data files, enabling crash recovery and PITR.
Worked examples3
1. An e-commerce site takes a full backup every Sunday at midnight. It also takes transaction-log backups every 15 minutes around the clock. The database crashes on Wednesday at 10:07 AM. What is the maximum data loss (RPO exposure) in this scenario, and how does it compare to a strategy with no transaction-log backups?
- Identify the most recent transaction-log backup before the crash: log backups run every 15 minutes, so the last completed log backup was at 10:00 AM Wednesday — 7 minutes before the crash.
- Maximum data loss = time since last log backup = 10:07 AM − 10:00 AM = 7 minutes.
- Without transaction-log backups, the most recent backup before the crash would be the Sunday full backup. Data loss = Wednesday 10:07 AM − Sunday 12:00 AM = approximately 58 hours and 7 minutes of transactions.
Answer: With 15-minute transaction-log backups the RPO exposure is at most 15 minutes (7 minutes in this instance). Without log backups it would be approximately 58 hours — a dramatically higher data loss risk.
2. A hospital takes a full backup every Sunday night and a differential backup every weekday night (Monday–Saturday). The server fails on Friday at 3:00 PM. List the backup pieces needed to restore the database and calculate how many backup sets must be applied.
- The last full backup was Sunday night — that is backup set 1.
- A differential captures all changes since the last full backup. The most recent differential is Thursday night — that is backup set 2.
- No additional incrementals are needed because a differential already includes all changes from Monday through Thursday.
- Total backup sets to apply: 2 (Sunday full + Thursday differential).
- Note: data from Friday morning until 3:00 PM is not captured; if transaction-log backups are not taken, that data is lost, making the RPO exposure roughly 15 hours on this day.
Answer: Two backup sets are needed: the Sunday full backup and the Thursday night differential. The restore is straightforward, but up to ~15 hours of Friday's data may be unrecoverable without transaction-log backups.
3. A small nonprofit has a stated RPO of 24 hours and an RTO of 8 hours. Their DBA proposes daily full backups stored on a local NAS drive only, with no offsite copy. Identify at least two risks this plan does not address.
- Check whether the backup frequency meets RPO: a daily full backup taken each night means data loss could be up to 24 hours — this just meets the 24-hour RPO target, assuming the backup completes successfully every night.
- Evaluate RTO: restoring a full backup from a local NAS is generally fast enough to meet an 8-hour RTO for a small database, so the RTO target may be achievable.
- Identify risks not addressed: (1) If a fire, flood, or ransomware attack destroys or encrypts the local NAS, there is no offsite copy — the organization loses all backups along with the primary database, violating RPO completely. (2) If backups are unencrypted, a stolen NAS drive exposes donor personal data, which is a legal and ethical liability. (3) Backups have never been test-restored, so there is no confirmation they are usable.
- Recommendation: add an offsite or cloud copy of each backup, encrypt backup files, and schedule periodic restore drills.
Answer: The plan meets the stated RPO and RTO only under ideal conditions, but fails to address the risk of site-level disaster destroying the sole backup copy, does not specify encryption of sensitive donor data, and includes no restore testing — all of which are professional requirements for a responsible backup strategy.
In class: Read and annotate an excerpt from the PostgreSQL documentation section on continuous archiving and the Oracle Database Backup and Recovery User's Guide introduction; identify every backup type mentioned and write a one-sentence definition for each. · Given three scenario cards (e-commerce site, hospital scheduling system, small nonprofit), calculate the maximum tolerable data loss and outage duration, then recommend and justify a backup type and frequency for each. · Participate in a class debate: pairs of students argue for and against incremental-forever backup strategies versus nightly full backups, citing trade-offs in restore complexity and storage cost.
Materials: PostgreSQL documentation (postgresql.org) — Chapter on Continuous Archiving; Oracle Database Backup and Recovery User's Guide (docs.oracle.com); Microsoft Learn DP-300 study path — backup and restore module; whiteboard; scenario card set
Check: Five-question written quiz on definitions and scenario matching; students must score 80% or higher to proceed.
Practice check8
Answer each question, then check it. Nothing is recorded; this is your own practice.
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.