Summary
When using the bexrt command to restore all the files from a tape or a directory, the restore fails to execute.
Symptoms
The output listing shows the files were all "Skipped". The following are examples of bexrt syntax:
bexrt -f xyz1 -I * -p 0 -t /dev/rmt/0cn / /temp
bexrt -f d:\restore\log1.log -I \directory\space directory\* -p 1 -t \\.\tape0 D: \restore
Resolution
There are two possible causes:
- Use of an asterisk without quotation marks. The file inclusion pattern specified by the
-I
argument cannot process the asterisk wild card symbol (*) if it is not enclosed in quotes. The asterisk(s) must either be enclosed in quotes (e.g. "*" or "*.*") or the-I
argument must be omitted completely.
The following are examples of a correctly formatted command to restore all the files on a tape:
bexrt -f xyz1 -I "*" -p 0 -t /dev/rmt/0cn / /temp
or
bexrt -f xyz1 -p 0 -t /dev/rmt/0cn / /temp
- This can also be caused by patterns with embedded spaces breaking as a pattern at the first space. The following is an example of a correct pattern:
bexrt -f d:\restore\log1.log -I "\directory\space directory\*" -p 1 -t \\.\tape0 D: \restore