Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.