Linux Labs

Storage / Stage 9 of 11

The archive exists — now check the restore

Not running Starting usually ~20 s
Leave the lesson

Step 6 of 7 · lab · 20 minmedium

Restore an app from a tar archive

The app broke after an update. Prepare a restored copy from the archive next to the working one, complete and with the archived modes.

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.

Lab · on your own

No commands are given in this lab: type them in the terminal yourself. Goals are checked on the machine after every command.

Goals

0 of 4
  • restore/app has the same files and directories as the archive, hidden ones included, and nothing extra — not done yet
  • File contents match the archive — not done yet
  • Owner is student, modes match the ones stored in the archive — not done yet
  • The archive and the working copy live are left as they were — not done yet
Ctrl+Enter
Starts the machine node1 · Ubuntu 24.04

The machine is starting

Hints

0 of 3

Lab goals

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

Lab goals

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