|
|
|
|
![]() ![]() |
Dec 9 2005, 11:53 AM
Post
#1
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
Well, I am taking regular backups of the database. However, what's actually the most compressed? gZip files or normal Zip files? I don't think the difference is big, but which one is most compressed?
|
|
|
|
Dec 9 2005, 06:34 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,081 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() |
I don't know the answer to this one, but I do know that I would take a large file with contents similar to what you would be compressing and try it using both programs. The results would tell you which one is most effective.
The reason I suggest using similar file structures is that the methds for compressing a database full of information may be different than the method used for compressing non-databased information. The white space in a page of html might compress differently than a bunch of white space inside another text document or database. Get it? |
|
|
|
Dec 10 2005, 09:45 AM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 144 Joined: 26-November 05 Member No.: 14,940 |
From my few experiences with GZip I must say... it RULES when coming to compression. Definitely way more than zip in every case. I first came to use Gzip beacuse I had to upload many files on a Unix server wich supported only Gzip extraction. It was nearly only about 80% of the zip for the same files. But the little problem I have faced so far is that I couldn't get a neat program to GZip my files. You see gz archives can store only one file per archive and that sucks. So you'll have to first convert it to TAR and then GZip it. That's why they usually have the extensions tar.gz. But its worth the effort for the compression ratio its giving.
|
|
|
|
Dec 10 2005, 09:38 PM
Post
#4
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
Ok, I'll try to check out which one compresses most, and give you an answer when the "test" is done
|
|
|
|
Dec 10 2005, 11:23 PM
Post
#5
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 197 Joined: 3-April 05 From: Cuernavaca, Mexico Member No.: 5,226 |
I dunno too much either, but I think GZIP is much better compression that ZIP... anyaways, it is up to you to decide.
They usually give you GZip files when backup in CPanel, which is way cool to me. You do not even need to Unzip the whole file, and all that stuff... Cheers! |
|
|
|
Dec 11 2005, 02:39 AM
Post
#6
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 282 Joined: 17-December 04 Member No.: 2,764 |
I think the compression is more or less the same for gzip and zip. Gzip uses the LZ algorithm used in zip and PKZIP. It is said that with text such as source code or English the size is reduced by 60-70%. The compression is better than that achieved by LZW. But I think it may not be as good as LZH. If you want preformance, 7z or rar outperform zip and gz. But I think the choice is also depends on the platform you are using. Zip is more portable in Win32 systems but gz generally rules in Unix and Linux systems. The compression speed, I think is faster in ZIp. Gz can have various level of compression for you to choose, but the highest level takes much CPU resources.
|
|
|
|
Dec 12 2005, 08:09 PM
Post
#7
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 18-April 05 Member No.: 5,852 |
I have had to use Gzip before and it is way better than a Zip file. I know this because when I was going to download a file the link to the Zip file did not work so I checked the Gzip one. The file was 14mb zipped but it was I think 12mb gzipped. It is a pretty big difference so I would go with Gzip.
|
|
|
|
Dec 12 2005, 09:27 PM
Post
#8
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 425 Joined: 19-October 04 From: long island, ny Member No.: 1,831 |
zip does not really compress, it just groups files together for download or transfer. Gzip is made for compression. Got it?
|
|
|
|
Dec 16 2005, 10:55 AM
Post
#9
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
psychiccyberfreak, you're wrong. Zip and Gzip may be different, and they are each good for their one. My test results are as following:
Zip: 626 kb GZip: 633 kb It doesn't really make any difference. For those who wonders, I downloaded my whole phpBB database, containing around 2100 posts and 200 members. So, Zip is not for multiple files - it seems to be better for that file. But Gzip may be better for other things, and maybe Gzip will be better for taking a backup too... |
|
|
|