Linux Labs

Storage / Stage 9 of 11 · step 6 of 7

Restore an app from a tar archive

medium ~20 min
Not running Starting usually ~20 s
Report a problem

Situation

After a failed update, the application in ~/backup-lab/live/app stopped working. There is a nightly archive, /srv/backup-lab/app.tar, that the team trusts. Before switching to the copy, the team wants to check it next to the working one. Last night a colleague started restoring the copy in ~/backup-lab/restore but did not finish.

Task

Prepare a restored copy of the application in ~/backup-lab/restore/app:

  1. the copy has the same files and directories as the archive, hidden ones included, and nothing extra;
  2. every file's contents match the archive;
  3. every file and directory is owned by student, and the modes are the ones stored in the archive;
  4. the archive and the working copy ~/backup-lab/live are left as they were.

Constraints

  • Leave the working copy live alone: the switch to the restored copy happens later, after review.
  • Work as your own user; this task needs no sudo.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 4
  • restore/app has the same files and directories as the archive, hidden ones included, and nothing extra — not checked yet
  • File contents match the archive — not checked yet
  • Owner is student, modes match the ones stored in the archive — not checked yet
  • The archive and the working copy live are left as they were — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…