Sponsored Content
Operating Systems AIX AIX 4.2: tar using compression ? Post 302283737 by Browser_ice on Wednesday 4th of February 2009 01:02:08 AM
Old 02-04-2009
I did a test.

I went into one of the backup folders I did last sunday. I picked one backup file and did a 'compress' on it :

Before : filesize = 1,943,830,528
After : filesize = 267,629,228

Compression ratio of 'compress' command = 86.23%
Time of 'compress' command completion = 25min

Since this particular server has about 7 files totalizing roughly 10.5Gb, it would take 02:12 to compress them all.

So if this particular server backup takes about 4 hours to backup everything non-compressed, it would take 2hrs (compression time) + 2hrs (50% normal backup time) = 4 hrs.

Hummm, I am not really saving anytime here. I do admit that using 50% of backup time when the compression ratio of one file was 86% is a bit exaggerating. I just used it as worst case scenario.

I know on one other servers where we don't do DB backups, we are using PKZIP v2.51 . I have no idea on how fast it would be using it compared to the 'compress' command and, I do not know if the license would allow it to use it on other servers.

Any comments ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

tar compression - please help

I'm backing up one of my sites, and will be moving to another host. This was an expermintal site, and many of the directories won't be needed. What tar command is needed to exclude directories from the compressed file? Could you also give an example. also this might be the same comand, but -... (4 Replies)
Discussion started by: Taylor
4 Replies

2. AIX

Return Code of tar in AIX

I am making some shell commands using tar command under AIX. Could somebody tell me the meaning of those return code of tar command? like 1, 2, 3... I have been searching all the time and got only this: 0 success >0 error Does somebody know the meaning of those number greater than 0 in... (3 Replies)
Discussion started by: dupeng
3 Replies

3. AIX

How to tar a files that bigger than 2 gig in AIX 5.2?

Hi, I have a question. Im trying to tar a files that the size is bigger that 2 gig. When i tried to tar it, i got an error says "eached end-of-file before expected" How can i solve this? Thanks and Regards (6 Replies)
Discussion started by: owangecounty
6 Replies

4. AIX

GNU Tar with compression for AIX 4.2 already compiled ?

Is there a GNU Tar available with compression option available for AIX 4.2 that I can directly use (not having to compile anything, simple installation) ? (1 Reply)
Discussion started by: Browser_ice
1 Replies

5. AIX

Tar extraction error in aix 5.3

Hi root@appdr01 #ls -latr total 2887400 drwxr-xr-x 2 root system 256 May 06 11:34 lost+found drwxr-xr-x 34 root system 4096 May 06 11:34 .. drwxr-xr-x 3 root system 256 May 06 12:20 . -rw-r----- 1 root system 1478338560 May 06... (1 Reply)
Discussion started by: samsungsamsung
1 Replies

6. AIX

How to install .tar.tgz file in AIX 6.1?

Hello, I have openssl.0.9.8.1103.tar.tgz file which I have downloaded from https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=aixbp&S_PKG=openssl siteThe website says that the file name is openssl.0.9.8.1103.tar.z but when downloaded I get openssl.0.9.8.1103.tar.tgz as the... (2 Replies)
Discussion started by: gaugeta
2 Replies

7. UNIX for Dummies Questions & Answers

How to tar a directory in AIX?

Hi i want to tar a directory.. i have tried few command but it is not working . please let me know how to tar and untar a directory below are the error which i am getting tar -zxvf tl11cp01_042414_071123.tar.gz tar: Not a recognized flag: z tar -zxvf... (3 Replies)
Discussion started by: scriptor
3 Replies

8. AIX

Comparing two tar files on AIX

Hello, I have a directory which suddenly got filled up 100% from 70% ; (this is an oracle directory which has application and database in it ORACLE EBS) I do make cold backups, last month when I made cold backup of the directory /oratec the tar zip file was 31GB and this month when i made the... (5 Replies)
Discussion started by: filosophizer
5 Replies

9. AIX

GNU TAR vs NATIVE AIX TAR

Hello, Getting this very strange error, made tar/zip through gnu tar GNU Tar ( successful tar and zip without any errors ) /opt/freeware/bin/tar cvf - /oraapp| gzip > /backup/bkp_15_6_16_oraapp.tgz GNU unTar error root@test8:/>gunzip < /config1/bkp_15_6_16_oraapp.tgz |... (5 Replies)
Discussion started by: filosophizer
5 Replies

10. UNIX for Advanced & Expert Users

Tar gzip compression rate

How good is the compression rate of gzip when you use tar with the gzip option? I am pretty amazed that a 1 GB file was reduced to 1019K. This is what I did. tar -cvf tar_test.tar.gz -T /list_of_files ls -hl -rw-r-----. 1 owner group 19 Jul 23 16:00 list_of_files -rw-r-----. 1 owner group... (7 Replies)
Discussion started by: cokedude
7 Replies
th_get_pathname(3)						  C Library Calls						th_get_pathname(3)

NAME
th_get_pathname, th_get_uid, th_get_gid, th_get_mode, th_get_crc, th_get_size, th_get_mtime, th_get_devmajor, th_get_devminor, th_get_linkname - extract individual fields of a tar header TH_ISREG, TH_ISLNK, TH_ISSYM, TH_ISCHR, TH_ISBLK, TH_ISDIR, TH_ISFIFO - determine what kind of file a tar header refers to TH_ISLONGNAME, TH_ISLONGLINK - determine whether the GNU extensions are in use SYNOPSIS
#include <libtar.h> char *th_get_linkname(TAR *t); char *th_get_pathname(TAR *t); mode_t th_get_mode(TAR *t); uid_t th_get_uid(TAR *t); gid_t th_get_gid(TAR *t); int th_get_crc(TAR *t); off_t th_get_size(TAR *t); time_t th_get_mtime(TAR *t); major_t th_get_devmajor(TAR *t); minor_t th_get_devminor(TAR *t); int TH_ISREG(TAR *t); int TH_ISLNK(TAR *t); int TH_ISSYM(TAR *t); int TH_ISCHR(TAR *t); int TH_ISBLK(TAR *t); int TH_ISDIR(TAR *t); int TH_ISFIFO(TAR *t); int TH_ISLONGNAME(TAR *t); int TH_ISLONGLINK(TAR *t); VERSION
This man page documents version 1.2 of libtar. DESCRIPTION
The th_get_*() functions extract individual fields from the current tar header associated with the TAR handle t. The TH_IS*() macros are used to evaluate what kind of file is pointed to by the current tar header associated with the TAR handle t. The TH_ISLONGNAME() and TH_ISLONGLINK() macros evaluate whether or not the GNU extensions are used by the current tar header associated with the TAR handle t. This is only relevant if the TAR_GNU option was used when tar_open() was called. SEE ALSO
tar_open(3) University of Illinois Jan 2001 th_get_pathname(3)
All times are GMT -4. The time now is 12:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy