- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- creating compressed data and archive into tape
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
10-17-2001 10:40 PM
10-17-2001 10:40 PM
creating compressed data and archive into tape
1. How to create .tar.gz files so that I could put into the web for distribution? I would expect the user to use the command
gzip -dc [file name]| tar -xvf -
to extract it.
2. How to compress directory or files, and straight away archive it into the tape using
a. fbackup
b. tar ?
Thank u and bye.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2001 11:19 PM
10-17-2001 11:19 PM
Re: creating compressed data and archive into tape
To create your gzip file:
# cd dir
# tar cf - ./* | gzip - > filename.tar.gz
To uncompress
# cd another_dir
# gunzip -c filename.tar | tar xf -
For your tape backups, can you not use device compression? Have you a specific example?
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2001 11:30 PM
10-17-2001 11:30 PM
Re: creating compressed data and archive into tape
Thank u.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2001 11:36 PM
10-17-2001 11:36 PM
Re: creating compressed data and archive into tape
if you want to distrubute, be sure to use relative pathnames in tar-command.
(Something you should make sure whenever you extract something-> tar -tvf ...... and check for absolute stuff like /vmunix esp. if added to the end of an tar-archive)
if you want to archive everything in the current directory, you should do as suggested,
beside I tend to use
tar -cvf - .
because
tar -cvf - ./*
will not select all hidden files in the current directory like .profile, .netrc or so.
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 12:20 AM
10-18-2001 12:20 AM
Re: creating compressed data and archive into tape
1.
cd
tar -cvf - .|gzip - >file.tar.gz
2.
cd
gzip -rv * |tar -cv /dev/
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 01:17 AM
10-18-2001 01:17 AM
Re: creating compressed data and archive into tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 01:31 AM
10-18-2001 01:31 AM
Re: creating compressed data and archive into tape
Carlos, if we use hardware compression, such as /dev/rmt/c0t4d0BEST, could we control the compression rate? How we know how many percent of data could be compressed at the end of archiving the data?
For e.g., I have 7GB to backup, my tape supports 4GB without compression, 8GB after compression. Could we rest assure that we could backup the data using compress mode?
Thank u.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 01:42 AM
10-18-2001 01:42 AM
Re: creating compressed data and archive into tape
Hardware compress you can trust :) If they say 8 GB of data it doesn't mean that they will compress your 7GB to fit in 4GB but that they will put 7GB on that tape.
Btw, what's not working on the 2nd example? (that was a solution to soft-compress then archive).
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 01:52 AM
10-18-2001 01:52 AM
Re: creating compressed data and archive into tape
you will not manage to write 7 GB of zip-files to 4GB Tape with an "estimated" hardwarecompression of 8GB.
The average estimate is 2:1 as this makes sense for an average mixture of binaries (1:1,5) and textfiles (1:4 or better).
Hardware compression has the problem, it has to compress a datastream, so it can not calculate an optimal compression. Usally hardware compression uses Huffman or comparable strategie.
GZIP can calculate an optimal compression code, this is why it is slower than i.e. "compress".
Now the real problem is, that if you pipe compressed data through a Huffman-compress (on the tape) the result will even be bigger than the input !
So if you backup GZIP-files, you should use a NO-compress devicefile !
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 02:00 AM
10-18-2001 02:00 AM
Re: creating compressed data and archive into tape
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 02:10 AM
10-18-2001 02:10 AM
Re: creating compressed data and archive into tape
I think the best for this 7GB is to write it directly to tape. Using pipes reduce to compress can result i a lower transfer rate which affects to tape performance and capacity.
___
For information: DDS's use Lempel-Ziv compression algorithm. DCLZ (Data compresion Lempel Ziv).