Mission 360

Capstone verified restore

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

Capstone labs
8 minutes Capstone Lesson 360 of 360
cpfiledifftarsha256sum
Lesson 360 of 360 0/360 lessons 0/17 missions Capstone labs · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Stage the restored file

Run cp restore/index.html lab/verified-restore.html.

cp restore/index.html lab/verified-restore.html
Identify the staged artifact

Run file lab/verified-restore.html.

file lab/verified-restore.html
Compare source and staged copy

Run diff restore/index.html lab/verified-restore.html.

diff restore/index.html lab/verified-restore.html
Archive the staged restore

Run tar -cf lab/verified-restore.tar lab/verified-restore.html.

tar -cf lab/verified-restore.tar lab/verified-restore.html
Hash the restore archive

Run sha256sum lab/verified-restore.tar.

sha256sum lab/verified-restore.tar
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with proving a restore artifact before deployment.

Hint

Start with cp restore/index.html lab/verified-restore.html, inspect the result, then continue in order.

Why it matters

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

Common mistakes
  • Skipping the output that proves proving a restore artifact before deployment.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

diff <left> <right>

Compare two lab text files.

sha256sum <file>

Print a deterministic training checksum.

file <path>

Identify a simulated file, directory, link, or text format.

tar -cf|-tf <archive>

Create and list training archives.

cp <src> <dst>

Copy a file.