PBQ3 – Linux Backup & Restore

Click tokens to build each tar command  |  Click a command token to remove it

Scenario: You are a systems administrator and have created an uncompressed backup of the application directory. Build the command you used.

Click tokens to add them to the command bar. The ˽ spacebar may be used multiple times. Click a command token to remove it. Not all tokens will be used.

tar click tokens above to build the command…
Correct command breakdown
TokenMeaningWhy it is needed
tarTape ArchiveBase command — pre-filled.
-cvfCreate · Verbose · Filec = create a new archive. v = verbose (lists files as added). f = next argument is the filename.
/backups/application.tarDestination archive pathThe .tar extension (no .gz / .bz2) confirms the archive is uncompressed.
applicationSource directoryThe directory to archive. Must follow the destination filename when using -f.
Distractors — not used
  • -xvfx means extract; wrong for a create operation.
  • -xzvf / -xjvf / -cJvf — contain compression flags (z=gzip, j=bzip2, J=xz). Scenario says uncompressed.
  • -tvf — lists/tests archive contents; not for create or extract.
  • -d — compares archive to filesystem.
  • /backups/application.tar.gz / .tgz / .tar.bz2 — compressed filenames; wrong extension.
  • /opt/ · / · /home/ — unrelated directory paths.
  • -C — changes extraction directory; not needed when creating.