Operating System - Tru64 Unix
1753930 Members
8974 Online
108810 Solutions
New Discussion

True64 Unix tar restore for single directory

 
Dhaval_k
Occasional Contributor

True64 Unix tar restore for single directory

I am running True64 UNIX 4.0F i have a backup taken using command tar -cvf /dev/nrmtoh ./ i.e. entire root backup. now there are directories /rh1, /ora, /oradb etc. if i want to restore only /ora back to mount point /ord then how can i run the command.

i have tried restoring single file system backup taken by command tar -cvf /dev/nrmtoh /ora and i have restored it with command tar -xvf /dev/rmtoh but in above case for restoring only single directory what tar command shall i use??
1 REPLY 1
Hein van den Heuvel
Honored Contributor

Re: True64 Unix tar restore for single directory


Just pass the directory as 'file' argument?

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN1/0153____.HTM

"Extracts the named files from the tape. If a named file matches a directory whose contents were written to the tape, this directory is (recursively) extracted.


I'd be tempted to just do the whole thing and then select.... given enough scratch disk space.

You may also want to check out the -R [Tru64 only] option.

hth,
Hein.