- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extract data that exclude some directories using t...
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
06-09-2003 01:20 AM
06-09-2003 01:20 AM
Extract data that exclude some directories using tar command
I want to use tar extracting data from tape that exclude some directories. Could you tell me how I can do it?
Thanks very much.
Best Regards
Ajk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 01:25 AM
06-09-2003 01:25 AM
Re: Extract data that exclude some directories using tar command
There is no option in tar to exclude selected directories.
You can do it on the other way by selecting whatever the directories to be extracted.
You first create a list of files archived and extract the directories whatever u required from the list.
1. #tar -tvf /dev/rmt/1m >logfile
2.#tar -xvf /dev/rmt/1m /usr1 /usr2
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 01:26 AM
06-09-2003 01:26 AM
Re: Extract data that exclude some directories using tar command
believe you can use pax,
# pax -pe -rvf /tarfile.tar -s '/^\///' /dir1 /dir2
Look at the man page of pax.
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 01:39 AM
06-09-2003 01:39 AM
Re: Extract data that exclude some directories using tar command
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 01:42 AM
06-09-2003 01:42 AM
Re: Extract data that exclude some directories using tar command
you can do this using GNU tar, look at the URL given by Mad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 07:32 AM
06-09-2003 07:32 AM
Re: Extract data that exclude some directories using tar command
tar tvf /dev/rmt/0>/tmp/tarnames
vi /tmp/tarnames
tar xvf /dev/rmt/0 `cat /tmp/tarnames`
Other tar variants can do this as you want it to: Backup Edge, a 3rd party product, is one of them.
Chris