![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |