- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tar the file
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
тАО12-06-2009 09:03 PM
тАО12-06-2009 09:03 PM
Tar the file
I have the file in the /var more than 2 Gb, so i need to tar the file and then gzip the file, because the /var is 100%... Actually the file name is /var/opt/net/compas/180909.. this was the example of the file name.. so to doing the tar and then zip waht is the task i need to carry on this...
Thanks in advance
- Tags:
- tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2009 09:17 PM
тАО12-06-2009 09:17 PM
Re: Tar the file
search for keywords like, say,
tar gzip
should find many examples in old threads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2009 09:17 PM
тАО12-06-2009 09:17 PM
Re: Tar the file
You can try this:
# tar cvf /destination/file1.tar /var/opt/net/compas/file1
# gzip -c file1.tar > file1.gz
Mention full path to avoid any confusion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2009 10:35 PM
тАО12-06-2009 10:35 PM
Re: Tar the file
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2009 10:39 PM
тАО12-06-2009 10:39 PM
Re: Tar the file
using tar on one file, i don't see any reason.
use gzip as Torsten said.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2009 10:48 PM
тАО12-06-2009 10:48 PM
Re: Tar the file
1. Preserve the original file.
2. Preserve the file's attributes (owner,
permissions, ...)
> # tar cvf /destination/file1.tar /var/opt/net/compas/file1
> # gzip -c file1.tar > file1.gz
When disk space is a problem, using a
pipeline seems less likely to cause problems.
As I said, examples abound.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2009 11:15 PM
тАО12-06-2009 11:15 PM
Re: Tar the file
But if var is already at 100% consider to create the tar somewhere else!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2009 01:15 AM
тАО12-07-2009 01:15 AM
Re: Tar the file
HP-UX will not delete this file during tar or zip ...
What's about /var/tmp - there's rarly a file you'll need ... you can delete here almost everything.
Volkmar