- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to exclude a folder in HP UX 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
Discussions
Discussions
Forums
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
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
тАО04-02-2008 01:45 AM
тАО04-02-2008 01:45 AM
I want to exclude a list of folders when i use tar.
I know that other UX versions offer
tar cvfX exclude.tar *
the above will exclude the folders specified in exclude.tar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 02:14 AM
тАО04-02-2008 02:14 AM
Re: How to exclude a folder in HP UX tar
HP Ux too have standard tar I guess. So normal options of classical tar will works in hpux too. A look at a man page will give you a hint.
-=ShRi=-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 02:25 AM
тАО04-02-2008 02:25 AM
SolutionUnfortunately, the HP-UX tar does not support the X argument unlike the gnu-tar.
You may wish to consider the solutions provided in the following thread:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=246415
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 02:29 AM
тАО04-02-2008 02:29 AM
Re: How to exclude a folder in HP UX tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 02:53 AM
тАО04-02-2008 02:53 AM
Re: How to exclude a folder in HP UX tar
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1195436
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1206984
Unfortunately the -c option only works when extracting.
You could do something like:
ls | grep -v -e ^filename | pax -w -f foo.tar -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 03:37 AM
тАО04-02-2008 03:37 AM
Re: How to exclude a folder in HP UX tar
You can install gnu tar on HP-UX.
U can get it from below:
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.19/
- Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 10:53 PM
тАО04-02-2008 10:53 PM
Re: How to exclude a folder in HP UX tar
Thanks Sri,Hadley and Santosh for your time and help.
Regards,
Satya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 11:17 PM
тАО04-02-2008 11:17 PM
Re: How to exclude a folder in HP UX tar
http://forums.itrc.hp.com/service/forums/helptips.do?#33
http://forums.itrc.hp.com/service/forums/helptips.do?#41