The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SCO UNIX tape restore canbe842 SCO 5 09-16-2008 08:15 PM
Restore from HP Tape Drive jlewis808 SCO 11 12-11-2007 11:35 AM
Restore a tape lo-lp-kl AIX 1 06-07-2007 06:22 PM
Backup Tape Restore? bake255 HP-UX 5 08-16-2006 06:56 AM
Restore to disk from tape mtoombs Filesystems, Disks and Memory 1 04-30-2004 11:26 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-16-2002
Registered User
 

Join Date: Apr 2002
Location: oman
Posts: 25
Restore Spacific File Type from TAPE ?!

Hi

I just want to know if there's any way to restore a spacific file type from a tape using tar command.

I have different file type in 4mm tape. *.pds ; *.txt *.lis and some more. I just want to restore *.pds from the tape and Ignore the other file type.( FILTER A FILE TYPE FROM THE TAPE)

IF Not.. then is there's any way after restoring the data to view only the type I want to view only like OLD VAX/VMS do "d computername$diskname:[filename...]*.pds;*"


Thaanks and sorry for my bad english.
Forum Sponsor
  #2  
Old 04-16-2002
thehoghunter
Guest
 

Posts: n/a
Check the man page!!

Found in the man page for tar -
x Extract or restore. The named files are extracted from
the tarfile and written to the directory specified in
the tarfile, relative to the current directory. Use
the relative path names of files and directories to be
extracted. If a named file matches a directory whose
contents has been written to the tarfile, this direc-
tory is recursively extracted. The owner, modification
time, and mode are restored (if possible); otherwise,
to restore owner, you must be the super-user.
Character-special and block-special devices (created by
mknod(1M)) can only be extracted by the super-user. If
no file argument is given, the entire content of the
tarfile is extracted. If the tarfile contains several
files with the same name, each file is written to the
appropriate directory, overwriting the previous one.
Filename substitution wildcards cannot be used for
extracting files from the archive; rather, use a com-
mand of the form:


tar xvf... /dev/rmt/0 `tar tf... /dev/rmt/0 |grep 'pattern'`


This works great - you just set the pattern to ".pds"

To do a directory in UNIX - ls *.pds (UNIX does not have the same restrictions as VMS - files do not need extensions - you will find it will free the mind. The only thing I have found that works better in VMS is search (ie. grep).
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0