Jump to content
xisto Community
Sign in to follow this  
Amezis

Gzip Or Zip?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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! :P

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

Well I had something more to add but I lost track of the topic (Silly Me ;) ). So I has to work with Gzip files after posting on this thread and this time I needed to create my own gzip archive. Until then I hadn't really created a gzip file successfully. So I toook off for a stroll on the net with my favorite fox and I hit upon this wonderful archive utility called TugZip which handles many types of archives very efficiently and the best oart -its FREE. So I'm posting the link here:

http://fileforum.betanews.com/detail/TUGZip/1061582000/1

Enjoy!

Share this post


Link to post
Share on other sites

Yes, but this thread was mainly because I was downloading my forum database from phpMyAdmin, and I had the choice between Zip and Gzip.But anyway, thanks for the link ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.