- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar help
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
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
02-25-2004 01:07 AM
02-25-2004 01:07 AM
tar help
The problem with listing what I want is there are a host of other files extensions that may change over time.
I must use tar, so does anyone know any good tricks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 01:10 AM
02-25-2004 01:10 AM
Re: tar help
Something like this:
# ls -1 | grep -v -e "*.o" -e "*.x" > file_list
# tar -cvf filename.tar $(cat file_list)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 01:10 AM
02-25-2004 01:10 AM
Re: tar help
http://forums1.itrc.hp.com/service/forums/bizsupport/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x4d7850011d20d6118ff40090279cd0f9%2C00.html&forumId=2&admit=716493758+1077718189425+28353475
the tar.exclude would contain
*.o
*.x
There were a lot of good answers in that thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 01:13 AM
02-25-2004 01:13 AM
Re: tar help
LOGFILE=/tmp/backup.log
TARFILE=`date |awk '{print ($1)}'`.tar
tar -cvf /home/backups/$TARFILE `cat /root/backupfiles` >>$LOGFILE 2>&1
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 01:20 AM
02-25-2004 01:20 AM
Re: tar help
And his grep has the potential danger of misinterpreting files that have wildcards and/or whitespace in their names, which - now we have samba and CiFS - happens far too often when users give phony names to the (edited to comply with ITRC guidelines) stuf they save on our precious shares
GNU tar is the solution
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 01:22 AM
02-25-2004 01:22 AM
Re: tar help
gnu tar might be having this option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 01:29 AM
02-25-2004 01:29 AM
Re: tar help
(0 points please)