nerdexam
IBM

000-221 · Question #70

Which command will read a volume group backup stored at/dev/cd1 and restore the /myapp/app.c file to the /data/testcode directory?

The correct answer is A. restorevgfiles -f /dev/cd1 -s -d /data/testcode ./myapp/app.c. The restorevgfiles command is the correct AIX utility for extracting individual files from a savevg volume group backup, using -f for the device and -d for the target directory.

Storage Management

Question

Which command will read a volume group backup stored at/dev/cd1 and restore the /myapp/app.c file to the /data/testcode directory?

Options

  • Arestorevgfiles -f /dev/cd1 -s -d /data/testcode ./myapp/app.c
  • Brestvg -d /dev/cd1 -s -f /data/testcode./myapp/app.c
  • Crestore -Tqvf/dev/cd1 -s -d /data/testcode ./myapp/app.c
  • Dlistvgbackup -restore /dev/cd1 -s -f/data/testcode ./myapp/app.c

How the community answered

(36 responses)
  • A
    81% (29)
  • B
    3% (1)
  • C
    6% (2)
  • D
    11% (4)

Why each option

The restorevgfiles command is the correct AIX utility for extracting individual files from a savevg volume group backup, using -f for the device and -d for the target directory.

Arestorevgfiles -f /dev/cd1 -s -d /data/testcode ./myapp/app.cCorrect

restorevgfiles is purpose-built for restoring specific files from a volume group backup created by savevg. The -f /dev/cd1 flag identifies the backup source device, -d /data/testcode specifies the destination directory, and ./myapp/app.c provides the relative path of the file to extract - matching the exact syntax required for this operation.

Brestvg -d /dev/cd1 -s -f /data/testcode./myapp/app.c

restvg restores an entire volume group from a savevg backup and cannot be used to selectively restore individual files; its flag syntax also differs from what is shown.

Crestore -Tqvf/dev/cd1 -s -d /data/testcode ./myapp/app.c

The restore command works with backups created by the backup command or mksysb, not with savevg volume group backups.

Dlistvgbackup -restore /dev/cd1 -s -f/data/testcode ./myapp/app.c

listvgbackup is used to list the contents of a volume group backup and has no -restore option for actually recovering files.

Concept tested: Selective file restore from AIX volume group backup

Source: https://www.ibm.com/docs/en/aix/7.3?topic=r-restorevgfiles-command

Topics

#restorevgfiles#volume group backup#file restore#backup

Community Discussion

No community discussion yet for this question.

Full 000-221 Practice