Linux Labs

Storage / Stage 9 of 11

The archive exists — now check the restore

Not running Starting usually ~20 s
Leave the lesson

Step 7 of 7 · summary · 2 min

Summary

  • An archive holds what tar was given: a whole directory comes with its hidden files, the * pattern comes without them.
  • tar -tf shows the paths before unpacking, and each file lands in the -C directory along its own path.
  • Restore into a separate directory and compare the copy with the archive using tar -df; whoever unpacks becomes the owner of the unpacked files.
  • The nightly archive was built without errors, yet .release was not in it: the script handed tar the app/* pattern instead of the directory itself.
Ubuntu 24.04
Loading…