Solved

VB.Net GZipstream

Posted on 2010-08-29
3
829 Views
Last Modified: 2012-05-10
I know how to compress a single file using GZip, but how would I compress a folder and all sub folders?
0
Comment
Question by:XGenwareS
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
thepanch earned 500 total points
ID: 33554996
gzip can only compress a single file. tar can archive multiple files, but it doesn't compress them. Therefore the two tools are oftne used together: first you archive all the files into one with tar, then you compress that file with gzip

and you use it like this
tar -cvzpf archive.tgz /home/example/public_html/folder
good luck
0
 

Author Closing Comment

by:XGenwareS
ID: 33555140
Worked perfect thanks
0
 
LVL 4

Expert Comment

by:thepanch
ID: 33555283
np anytime.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question