Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Data security: backup, archival and disposal

Clear, exam-focused notes on backup, archival and disposal: definitions, methods, calculations, examples and exam tips for Computer Engineering students.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Engineers use backup, archival and disposal to keep data available, meet legal and business requirements, and prevent information leakage when hardware is retired. Good practice reduces downtime, speeds recovery after incidents, and avoids legal penalties or privacy breaches.

Key ideas

Define terms first and then build from first principles.

  • Backup: a copy of active data kept so the original can be recovered after data loss, corruption, or accidental deletion. Backups are taken on a schedule and may be stored on-site, off-site or in the cloud. Assumption: backups are distinct copies that can be used to restore systems.

  • Archive: a copy of data retained for long-term storage because of legal, regulatory, or business requirements; typically data that is infrequently accessed. Assumption: archived data is not required for day-to-day operations but must be preserved intact. Archives are often stored on cold storage with higher retrieval latency and potential egress costs (e.g., tape, Glacier-class cloud).

  • Retention period: the length of time a backup or archive must be kept. Retention policies are driven by regulation, business need, and storage cost.

  • Recovery Point Objective (RPO): maximum acceptable age of data after a recovery procedure, measured from the time of the last good backup to the time of failure. Exact statement: "RPO is the maximum tolerable period in which data might be lost due to an incident." Assumption: clock synchronization between systems is adequate to measure age.

  • Recovery Time Objective (RTO): maximum acceptable time to restore service after an incident. Exact statement: "RTO is the maximum tolerable downtime for a service following an outage." Assumption: RTO is measured from service disruption (outage start) to service restoration.

  • Backup types:

    • Full backup: a copy of all selected data taken at a point in time. Properties: longest backup time, simplest restore.
    • Incremental backup: a backup of data changed since the previous backup of any type (usually since the last incremental or full). Properties: smallest daily transfer/storage, restore requires last full plus all incrementals since that full.
    • Differential backup: a backup of data changed since the last full backup. Properties: faster than full but grows each day until next full; restore requires only last full plus the last differential.

Provide exact storage formulas for a standard schedule (assumptions: S = size of full backup; c = fraction of S changing per day; n = number of days between full backups):

  • Full-only, daily fulls retained for n days: total storage = n·S.
  • Full + (n−1) incrementals: total storage = S + (n−1)·(c·S) = S·[1 + (n−1)·c].
  • Full + daily differentials: differential on day k has size = min(k·c·S, S) (if c is the fraction of S changing each day and changes are disjoint); total storage over n days = S + Σ_{k=1}^{n-1} size(differential_k) ≤ n·S.

Step-by-step derivation for full + incrementals over one cycle of n days:

  1. Day 0: take full backup of size S.
  2. Each subsequent day i (1 ≤ i ≤ n−1): incremental captures only new/changed data; assume average changed size per day = c·S.
  3. Total storage for cycle = S + (n−1)·(c·S).
  4. If cycles repeat weekly with retention of m cycles, multiply by m (or apply retention rules).
  • 3-2-1 rule: keep at least 3 copies of data, on 2 different media, with 1 copy off-site; modern guidance often adds 1 offline/immutable copy and 0 unverified backups (3-2-1-1-0). Use WORM/immutable storage or air-gapped media to resist ransomware.

  • Backup window: the time period in which backups run without impacting production. Simple model: backup window = data to transfer / effective transfer rate. Assumptions: network/storage bandwidth is stable and there is no contention.

  • Data remanence: residual representation of data that remains after attempts to erase. Exact statement: "Data remanence is the leftover information that can be recovered from storage media after data has been nominally erased." Assumption: different media have different remanence properties.

  • Sanitization / secure disposal methods (definitions and assumptions):

    • Overwriting: writing new data patterns over storage areas; assumption: effective on many magnetic disks if done correctly, less reliable on wear-leveled flash/SSDs unless vendor supports secure erase.
    • Degaussing: applying a strong magnetic field to destroy magnetic domains—effective for magnetic tapes and many HDDs but not for SSDs (no magnetic storage). Assumption: degauss strength must exceed coercivity of media; some modern drives have high coercivity and may resist weak degaussers. Note: degaussing renders HDDs/tapes unusable by erasing servo tracks.
    • Cryptographic erasure: destroying encryption keys so that encrypted data becomes unreadable. Assumption: the data was encrypted using a strong algorithm and keys were only stored in controlled locations.
    • Physical destruction: shredding, incineration or crushing media. Assumption: destruction reduces risk to acceptable levels and is performed to a verifiable standard. Per NIST SP 800-88 Rev. 1, sanitization methods are categorized as Clear, Purge, or Destroy; choose a method appropriate to media type and data sensitivity, and verify.
  • Chain of custody and verification: when backups might be evidence, maintain logs, checksums and immutable timestamps. Verify integrity with cryptographic hashes (e.g., SHA-family) and store hashes off-site.

Diagram to draw for exams (describe precisely):

  • Draw a three-layer diagram: left box "Production Systems" with arrows to a middle box "On-site Backup Storage (NAS / Tape Library)" and a second arrow to a right box "Off-site / Cloud Archive". Label arrows: "Daily backups (incremental)" to on-site, "Weekly full backup transfer" to off-site, and a separate arrow from Production to a small isolated box labelled "Air-gapped copy". Annotate RPO and RTO targets next to Production.

Reviewer note: I have used simple linear models and assumptions about daily change fraction c and unit prefixes; please check unit choices and statements about SSD secure erase reliability (listed in Verify).

Formulas

Backup window time (s) = Data size (bytes) / Transfer rate (bytes per second) — Data size: bytes (B), rate: B/s. Use when estimating transfer time.

Total storage (full + incrementals, one cycle) = S · [1 + (n−1)·c] — S = full backup size (B), n = days in cycle, c = average fraction of S that changes per day (unitless). Use for planning storage capacity.

Restore data required (incremental) = S + Σ_{i=1..k} I_i — S full size, I_i size of incremental i, k = number of incrementals to apply. Units: bytes. Use when estimating amount of data to read during restore.

Effective retention footprint = Σ_{r in retained backups} size(r) — sum of sizes of all retained restore points. Units: bytes. Use when computing billing or storage requirements.

Probability of data loss (approx) = 1 − Π_{i=1..m} (1 − p_i) — p_i = failure probability of each independent copy i, m = number of independent copies. Use only when failures are approximately independent.

Worked examples

Example 1 — Backup window calculation (numerical) Given: full data set = 2000 GB (assume 1 GB = 10^9 bytes unless stated), available transfer rate = 125 MB/s (1 MB = 10^6 bytes). Calculate backup time. Steps:

  1. Convert to bytes: Data = 2000 GB = 2,000 × 10^9 B = 2.0 × 10^12 B.
  2. Transfer rate = 125 MB/s = 125 × 10^6 B/s = 1.25 × 10^8 B/s.
  3. Time (s) = 2.0 × 10^12 / 1.25 × 10^8 = 16,000 s.
  4. Convert to hours: 16,000 s ÷ 3600 s/h = 4.444... h = 4 h 26 min 40 s. Answer: Backup takes approximately 4 h 26 min 40 s.

Example 2 — Storage planning for weekly full + daily incremental Given: full backup S = 2 TB, daily change fraction c = 10% = 0.10, cycle n = 7 days (one full per week). Compute storage for one week. Steps:

  1. Express S = 2 TB.
  2. Storage = S · [1 + (n−1)·c] = 2 TB · [1 + 6·0.10] = 2 TB · [1 + 0.6] = 2 TB · 1.6 = 3.2 TB. Answer: You need 3.2 TB per weekly cycle (before applying retention of multiple cycles).

Example 3 — Restore time with incremental backups Scenario: Weekly full on Sunday (S = 2 TB). Incrementals Monday–Friday capture 0.2 TB each. On Friday at 09:00 a failure occurs and you must restore Friday’s state. Restore throughput = 200 MB/s. Steps:

  1. Data to restore = full (2 TB) + incrementals since that full. Assume Friday’s incremental was taken earlier that day (e.g., 01:00), so you need full + Mon–Fri (5 incrementals): I_total = 5 × 0.2 TB = 1.0 TB.
  2. Total restore size = 2 TB + 1.0 TB = 3.0 TB.
  3. Convert to bytes (assume 1 TB = 10^12 B): 3.0 × 10^12 B.
  4. Throughput = 200 MB/s = 200 × 10^6 B/s = 2.0 × 10^8 B/s.
  5. Time (s) = 3.0 × 10^12 / 2.0 × 10^8 = 15,000 s = 4 h 10 min. Answer: Estimated restore time ≈ 4 h 10 min (network, disk I/O and processing overheads may increase this; include RTO buffer).

Common mistakes

  • Forgetting that incremental restore requires applying all incrementals in order; students often count only full + last incremental.
  • Assuming overwrite sanitization works reliably on SSDs; wear levelling may leave copies elsewhere.
  • Ignoring restore throughput vs backup throughput (they differ); students estimate backup time but forget restore read speed and processing time.
  • Not planning for verification (hashes) and chain-of-custody when backups may be evidence.
  • Not regularly testing restore procedures; backups are only as good as a successful restore.
  • Treating storage-array or filesystem snapshots as backups; they share the same fault domain and do not meet off-site/immutable requirements.

For your exam

Types of questions you will see: short definitions (define RPO, RTO, archive, sanitization), compare-and-contrast (full vs incremental vs differential), numeric capacity and time calculations (backup window, storage planning), diagram tasks (draw backup topology with on-site, off-site, air-gap and label RPO/RTO), and long-answer policies (draft a retention/disposal policy for a company). Expect to discuss rotation schemes (e.g., Grandfather–Father–Son) and the 3-2-1 rule/immutability in designs.

What a full-marks answer includes:

  • Precise definitions of terms and assumptions used.
  • For numericals: list given data, list formulas, unit conversions, step-by-step calculation, final answer with units.
  • For diagrams: draw boxes for systems and storage targets, label arrows and RPO/RTO values, annotate schedule (daily incremental, weekly full) and retention periods.
  • For policy questions: include retention periods, encryption/verification practices, roles (who approves disposal), legal hold exceptions, and secure disposal techniques.

Quick check

  1. Define RPO in one line.
  2. What backup type requires the fewest bytes per day: full, incremental, or differential (assume small daily change)?
  3. Name two secure disposal methods suitable for magnetic tapes. Answers: RPO = maximum tolerable age of data after recovery (maximum acceptable data loss window); incremental requires fewest bytes per day; degaussing and physical destruction (shredding) are suitable for magnetic tapes.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?