- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compression
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
06-23-2004 06:39 PM
06-23-2004 06:39 PM
i do my tar backup on hard disk hich i 36GB, and i do te ackup for two files the bigger one is 30GB , and then when i do compress command on the file the disk become full before it finished compressing .
is there is any thing (patch) can i add to the tar command to compression and tar at the same time ???
BR,
Fadia
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:49 PM
06-23-2004 06:49 PM
Re: compression
tar doesnt support files more than 2GB.
Look out for GNU TAR
regds
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:52 PM
06-23-2004 06:52 PM
Re: compression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:54 PM
06-23-2004 06:54 PM
Re: compression
GNU TAR will do it for you.
get it from
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.14/
and install it
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:11 PM
06-23-2004 07:11 PM
Re: compression
i try this but it gives me error that gzip not found.but i want to know is the file i put for gzip is a new file , if this is the case , i will hae a problem that i will have wo files one is from the tar and the other from the gzip. is is rigth or what
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:15 PM
06-23-2004 07:15 PM
Re: compression
Do you have enough space on the disk/filesystem where you are compressing the file ?
Normally compressing a file requires atleast 50%-100% of the free space on disk/filesystem
depending upon the ratio of compression.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:18 PM
06-23-2004 07:18 PM
Re: compression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:32 PM
06-23-2004 07:32 PM
Re: compression
If it's not, use the full path for 'gzip'.
If you don't have gzip (I find this very hard to believe), try using 'compress' in it's stead:
tar cf -
The whole point of this (to make it a bit clearer) is to do the commands in a pipe. This means you aren't creating a 30GB intermediate file before you compress it, it's done as-you-go.
Your current issue is that your 36GB disk has 30GB used already for your 'tar' file, which means your compression doesn't have any worknig space to play with (depending on the compression program you use dpeends on how much space you need).
Pipes are good. Use them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:35 PM
06-23-2004 07:35 PM
Re: compression
you could use
tar cfv -
This should tar and compress the files in one step
HTH
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:40 PM
06-23-2004 07:40 PM
Re: compression
As previous post suggest, use the -z option in gzip to compress the backup.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 07:42 PM - last edited on 09-16-2024 02:26 AM by support_s
06-23-2004 07:42 PM - last edited on 09-16-2024 02:26 AM by support_s
Re: compression
Failing that you can download it from here. The usage of tar with the pipe through gzip is a very good method.
http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.3.5/
- Tags:
- iLO_OA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 11:08 PM
06-23-2004 11:08 PM
Re: compression
just a small question when using this tar command
tar cf -
the files used is the files that i will do backup for or at which i will do the backup ,
and also as i have to do the backup for a directory contains many files can i replace it with the dirctory path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 12:41 AM
06-24-2004 12:41 AM
Re: compression
look at my reply and you'll see that you can do it with the directory.
Btw, would you mind assining points ?
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 12:44 AM
06-24-2004 12:44 AM
Re: compression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:05 AM
06-24-2004 01:05 AM
Re: compression
the files respectively the directory named after the tar command are / is the thing you want to backup
For example if you want to backup /tmp
then : tar cfv - /tmp|gzip ...
HTH
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:23 AM
06-24-2004 01:23 AM
Re: compression
i tried it but it does not work, what shull i do for that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:25 AM
06-24-2004 01:25 AM
Re: compression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:33 AM
06-24-2004 01:33 AM
Re: compression
"tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[
-C directory] file] ..."
the command i use is
" tar cvf /u01/oracle/oa11idata|/usr/contrib/bin/gzip > /u04/SAT-u01.tgz"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:36 AM
06-24-2004 01:36 AM
Re: compression
tar cvf - /u01/oracle/oa11idata|/usr/contrib/bin/gzip > /u04/SAT-u01.tgz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2004 05:28 PM
06-26-2004 05:28 PM
Re: compression
but i want to ask if i want to restore my data agian , can i do it by uncompress the file first and then do the tar command or there is another way
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2004 08:20 PM
06-26-2004 08:20 PM
Re: compression
-rw-rw-r-- 1 sks xyz 294 Apr 21 11:28 data
$tar cvf- data.tar data;gzip data.tar
-rw-r--r-- 1 sks xyz 322 Jun 27 13:55 data.tar.gz
No issue to recover data after gunzip & tar -xvf.
$tar cvf- data.tar data|gzip > data.tar.gz
-rw-r--r-- 1 sks xyz 20 Jun 27 14:02 data.tar.gz
$gunzip data.tar.gz
-rw-r--r-- 1 sks xyz 0 Jun 27 14:07 data.tar
So using tar > gzip lead to a file which is 0 bytes whereas tar;gzip leads to correct results.
Any explanation?
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2004 11:31 AM
06-27-2004 11:31 AM
Re: compression
As Sanjay says, you can un-gzip separately, or you can do it in a pipe like you made the backup.
You did:
tar cvf - /u01/oracle/oa11idata|/usr/contrib/bin/gzip > /u04/SAT-u01.tgz
To restore this, you'd do:
cd /;gunzip -c /u04/SAT-u01.tgz | tar xvf -
This will un-compress to the STDOUT (rather than to an on-disk file), and throw the information via the pipe into tar to extract it. (If you don't have the 'gunzip' sybolic ilnk or binary, you can use 'gzip -cd' instead. They do the same thing).
As you've got the full-root-oriented-path in the backup line, it will over-write the existing data. You might want to consider using a relative path in future:
cd /u01/oracle;tar cvf - ./oa11idata | /usr/contrib/bin/gzip > /u04/SAT-u01.tgz
This would allow you to restore to a different path other purposes