Backup & Recovery
Protect a Linux server's data with encrypted, versioned backups that stay consistent and isolated, and prove recovery with timed restore drills.
4 objectives 6 steps about 135 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Write a backup policy for a server - scope, RPO, RTO, retention and a 3-2-1 layout with an offline or immutable copy - and explain why RAID, replication and file sync are not backups.
- Run encrypted, deduplicated, incremental backups to a remote repository with restic or BorgBackup, apply a retention policy and verify repository integrity.
- Capture consistent backups of live data - database dumps or native backup tools, quiesced services, LVM or file-system snapshots - and state the consistency each method guarantees.
- Restore files, a database and a whole service onto a clean host in a timed drill, verify the result with checksums and application checks, and record the achieved RPO and RTO.
Lesson plan
6 steps, about 135 min · 0 of 5 lessons available so far
- What a backup must survive: RPO, RTO, retention and the 3-2-1 rule Concept · 20 min · coming later
- Full, incremental and deduplicated: how modern backup repositories store data Concept · 15 min · coming later
- Lab: encrypted, deduplicated backups to a second host with restic, retention and integrity checks Lab · 30 min · coming later
- Consistent copies of live data: database dumps, quiesced services and snapshots Worked example · 25 min · coming later
- Lab: a timed restore drill onto a clean host Lab · 30 min · coming later
- Check: backup policies and restore failures Knowledge check · 8 questions
Practise it
For a VM running a small web application with a PostgreSQL or SQLite database, write a one-page backup policy with RPO, RTO and retention; back up configuration, uploads and a consistent database dump with restic to a second host over SFTP (or an S3-compatible bucket) using a credential that can only write backups; schedule it with a systemd timer that alerts on failure; then restore everything onto a freshly built VM against a stopwatch. Submit the policy, the timer units, `restic check` output, the restore log with checksum and application-level checks, and the measured RPO and RTO with their limitations.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.