QuestionQ11

Operations

An administrator has assumed management of an existing system and needs to restore an application configuration file from an old tar backup. The commands that created the backup were

Question Image

How can they restore /app_dir/appl/config/master.cfg without overwriting the existing file?

  • A
  • B
  • C
  • D
Explanation

GNU tar’s -C option changes to the specified directory before extraction. Extracting the backup into the separate /.snapshots/appl/config directory restores the archived hierarchy there rather than writing over the live configuration file. GNU tar normally removes leading slashes from archived member names, so archive-member selection must use the stored relative name.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!