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.
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)- A81% (29)
- B3% (1)
- C6% (2)
- D11% (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.
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.
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.
The restore command works with backups created by the backup command or mksysb, not with savevg volume group backups.
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
Community Discussion
No community discussion yet for this question.