Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar -tv shows //usr.., //etc..

Status
Not open for further replies.

tyagineeraj

IS-IT--Management
Mar 27, 2001
16
0
0
IN
Hi

using tar -cf /dev/rmt/0 / for full file system backup.

how would we do restor as

tar -tv shows files like

//usr/...
//opt/..
//etc/..
etc.

how / within / ??

any idia

thanks
neeraj
 
Hi neeraj,
To restore your file from tape use the command
# tar -xvf /dev/rmt/0
To check the contents of the backup tape give this command
# tar -tvf /dev/rmt/0
Notice the two options x and t to tar command.

If you are giving the above mentioned first command
your all files including the root directory are replaced with the old files in the tape. It will not create a new directory / within / .
I think you can't create a directory / under root(/) itself.

Suresh.
 
try doing 'cd /;tar cvf /dev/rmt/0 .' instead ... that way you can always restore to a different place on your filesystem if you need to ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top