- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar 1.5.1 problem
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
тАО03-26-2007 10:25 PM
тАО03-26-2007 10:25 PM
I have tar 1.5.1 installed from one of my forum thread..for gnu tar utility to take a tar of more than 2 gb...
but when i run tar -cvf test.tar /home which is 5 gb in size the tar file is cretaed but the file is not compressed..the same file size of 5 tar is getting formed..what should i do??
Solved! Go to Solution.
- Tags:
- tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 10:30 PM
тАО03-26-2007 10:30 PM
Re: tar 1.5.1 problem
tar is an archiving method not a compression tool!
use tools like compress, gzip ... for compression of the files.
See:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1053335
and the last answer in
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=775222
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 10:37 PM
тАО03-26-2007 10:37 PM
Re: tar 1.5.1 problem
Try adding the z option.
# gtar cvzf test.tar.gz /home
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:20 PM
тАО03-26-2007 11:20 PM
Re: tar 1.5.1 problem
You can zip the file using gzip command
#gzip file_name.
If it is a directoy, then tar the directory and then zip the file
#tar -cvf dir.tar dir
#gzip dir.tar
You can also use gtar command.
Cheers;
Indrajit Roy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:23 PM
тАО03-26-2007 11:23 PM
Re: tar 1.5.1 problem
im not able to find gtar command in my server....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:29 PM
тАО03-26-2007 11:29 PM
Re: tar 1.5.1 problem
It is already mentioned.
Still, for clarity here is the full path for gzip.
1.
/usr/contrib/bin/gzip test.tar
(filename of the tar - in your case test.tar)
2.
compress test.tar
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:37 PM
тАО03-26-2007 11:37 PM
Re: tar 1.5.1 problem
I think my questn is not clear...
what i mean to ask u guys is that after creating a tar archive should my directory size be reduced ? and if yes then to what extent ..by how many % ?
And second thing i have installed gnu tar since i need to take a tar of 5gb directory.. from http://hpux.connect.org.uk/hppd/hpux/ as a result of which im not able to find gtar command in my server..i doubt whether gnu tar has been properly installed...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:44 PM
тАО03-26-2007 11:44 PM
Re: tar 1.5.1 problem
Your original files may be increased if they had holes in them and when tar reads them, it would fill in these holes.
The size of the archive should be the sum of the files plus overhead. Only when compressing would you have a reduced size.
gnu tar is just probably called tar and not gtar. Typically if you want to make sure you keep your foreign devil tools separate from HP's, you use g* as the name.
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 12:00 AM
тАО03-27-2007 12:00 AM
Re: tar 1.5.1 problem
/usr/local/bin/gtar - it should be the default location.
or try to find
find /usr -name gtar
or any dir where you think this might have gone in.
Reg. the reduction of the size, as far as I noticed, normally it should not impact.
Tar as a tool is used for archiving/backing up or moving files around from systems to systems, etc. It is not meant anyway for anyway of compression.
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 12:29 AM
тАО03-27-2007 12:29 AM
Re: tar 1.5.1 problem
no gtar found on my server..