LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   backup utility (https://www.linuxquestions.org/questions/linux-software-2/backup-utility-436315/)

saini_mw 04-18-2006 05:42 AM

backup utility
 
hi dears,

I am using HP DDS4 drive for backup,using tar command i can backup and restore data but what if i want to see what is inside the tar files stored on DDS media???
tar command only shows the .tar files stored on media but i want to see the contents of that particular tar file.


Thanks in advance


Inder

kilgoretrout 04-18-2006 09:16 AM

Here's a mini-Howto I wrote a long time ago:

**************************************************************************************

To list the contents of an archive:

$ tar -tvf <archive>

To list only the directories do:

$ tar -tf archive.tar | grep /$

**************************************************************************************

Extracting individual files from an archive:

tar -xvf <archive> <filename>

The filename must be as it appears in the archive; use tar -tvf to get exact file name.

**************************************************************************************


All times are GMT -5. The time now is 10:40 PM.