ITEM: S0277L

Restore files on mksysb to different directory structure


ENV: AIX 3.2.5

DESC: You want to restore files from a mksysb to a different
location. The files are located in

  ./home/sub_dir_1/sub_dir_2/DIRECTORY_3

You would like to restore these files to

  ./home/sub_dir_1/sub_dir_2/DIRECTORY_4

ACT: I used the following series of commands to accomplish this task:

  \# tctl -f /dev/rmt0 rewind
  \# tctl -f /dev/rmt0.1 fsf 3
  \# cd /
  \# pax -s !./home/sub_dir_1/sub_dir_2/DIRECTORY_3!\\
  \# ./home/sub_dir_1/sub_dir_2/DIRECTORY_4! -pmop -rvf  /dev/rmt0\\
  \# ./home/sub_dir_1/sub_dir_2/DIRECTORY_3

NOTE: the back slash (\\) is used for line continuation and is not
necessary if you can fit the whole command on one line.

The above commands restored the files which were located in the path
 ./home/sub_dir_1/sub_dir_2/DIRECTORY_3 on the tape to the
path ./home/sub_dir_1/sub_dir_2/DIRECTORY_4 on the system


Support Line: Restore files on mksysb to different directory structure ITEM: S0277L
Dated: March 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:36
Comments or suggestions? Contact us