Hosting Operations
Check Required Files After Restore
You need to confirm every required path exists in the restored sandbox.
Command
cd restore-dr && rm -rf restore-sandbox/full && mkdir -p restore-sandbox/full && tar -xf backups/2026-06-25/site.tar -C restore-sandbox/full && find restore-sandbox/full -type f | sed 's#^restore-sandbox/full/##' | sort | comm -23 required-files.txt -
What changed
The archive is extracted under restore-sandbox/full, then file paths are compared.
Danger
caution
When to use it
Use after sandbox extraction to prove required files are present.
When not to use it
Do not rely on this alone for content integrity; pair it with checksums.
Undo or recovery
Remove the restore-dr/restore-sandbox/full directory from the fixture copy.
Expected output
No output means no required files are missing.
demo script
Disposable terminal steps
cd restore-dr && cat required-files.txtcd restore-dr && rm -rf restore-sandbox/full && mkdir -p restore-sandbox/full && tar -xf backups/2026-06-25/site.tar -C restore-sandbox/full && find restore-sandbox/full -type f | sed 's#^restore-sandbox/full/##' | sort | comm -23 required-files.txt -
simulated output
What it looks like
::fixture-ready::
$ cd restore-dr && cat required-files.txt
app/config.yml
app/orders.csv
app/secrets.env
bin/deploy.sh
public/index.html
uploads/avatar.txt
::exit-code::0
$ cd restore-dr && rm -rf restore-sandbox/full && mkdir -p restore-sandbox/full && tar -xf backups/2026-06-25/site.tar -C restore-sandbox/full && find restore-sandbox/full -type f | sed 's#^restore-sandbox/full/##' | sort | comm -23 required-files.txt -
::exit-code::0
YouTube Short
Check required restored files.
After restore, compare the restored tree to the required list. Silence means every required path is present.
LinkedIn hook
A successful extraction still needs a required-file check.
Question: Do you maintain a required-file list for restore drills?
experiments
A/B tests to run
Metric: save_rate
A: A restored tree needs a checklist.
B: Silence can be the pass signal.