Skip to content
Clairos Learn

Capstone labs · Lesson 18 of 18 · 8 minutes

Capstone verified restore

Stage, compare, archive, and hash a restored web artifact.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Proving a restore artifact before deployment helps operators explain what they know before they change anything.

cp
Copy a file to a new location, leaving the original in place.

Confirm the destination before replacing a file. This lab supports file copies, not every cp option.

file
Identify a file from its characteristics rather than trusting only the filename extension.

The simulator uses a small reviewed type classifier, not the full system magic database.

diff
Compare two text files; a difference is a meaningful nonzero status, not necessarily an execution error.

Status 1 means differences for diff; shell status must be interpreted in command context.

tar
Practice archive inventory, creation, and extraction in a simulated archive format.

These training archives are virtual data structures, not downloadable production tar files.

sha256sum
Compare content digests to detect byte changes, not to establish who authored the file.

A checksum detects changes only relative to a trusted expected digest.

Worked example and expected result
$ cp restore/index.html lab/verified-restore.html
(no output; exit 0)

Exit status: 0. The command completed successfully in the training fixture.

$ file lab/verified-restore.html
/home/learner/lab/verified-restore.html: HTML document, ASCII text

Exit status: 0. The command completed successfully in the training fixture.

$ diff restore/index.html lab/verified-restore.html
(no output; exit 0)

Exit status: 0. The command completed successfully in the training fixture.

$ tar -cf lab/verified-restore.tar lab/verified-restore.html
created archive /home/learner/lab/verified-restore.tar

Exit status: 0. The command completed successfully in the training fixture.

$ sha256sum lab/verified-restore.tar
991686a876cdf316e08bd52dd2e09a14033dccad0911e67ce71cbdde62e5f680  /home/learner/lab/verified-restore.tar

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “Capstone verified restore”, which interpretation is safe?

Apply it elsewhere

Before adapting the file workflow from “Capstone verified restore” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Review this courseTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Capstone multi-signal outageCorrelate service, config, journal, listener, and capacity evidence for an outage.Practice