- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restoring selected files from TAR
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 08:18 PM
01-04-2001 08:18 PM
Restoring selected files from TAR
I want to restore those files which has extension of .dbf.
I tried with "tar -xvf /dev/rmt/0m /data/*.dbf
It did not do anything.
Pl. help.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 08:31 PM
01-04-2001 08:31 PM
Re: Restoring selected files from TAR
tar doesnt allow wild card usage .
better to use fbackup its very efficient .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 08:38 PM
01-04-2001 08:38 PM
Re: Restoring selected files from TAR
The * on the command line is special to the shell, not tar. The shell will attempt to substitute file names that match the pattern /data/*.pdf, where the * can be 0 or more characters.
Since tar does not recognize wild cards, you will have to get creative. Try something like tar xf /dev/rmt/0m $( tar tf /dev/rmt/0m | grep "/data/*.pdf" ). Good luck,
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 10:07 PM
01-04-2001 10:07 PM
Re: Restoring selected files from TAR
Do not use wild charactor!
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 11:42 PM
01-04-2001 11:42 PM
Re: Restoring selected files from TAR
Bruce's method looks pretty but could give you an "argument list too long error message", depending on the number of /data/*.dbf files.
In that case, you may use a temp file:
tar tf /dev/rmt/0m | grep "/data/*.dbf" >/tmp/tar$$
cat /tmp/tar$$ | xargs tar xf /dev/rmt/0m
Best regards,
Dan