Web Hosting Talk







View Full Version : Creating tarballs (or something like them)...


Lancia
06-28-2002, 04:47 PM
What is the best way to put all of the files and folders in a directory into one single file? And what is the command to do it on a Linux machine?

ToastyX
06-28-2002, 08:03 PM
tar czf file.tar.gz directory

allera
06-28-2002, 08:07 PM
or if you want it gzip'd:

tar zcvf file.tgz directory

chirpy
06-29-2002, 11:15 AM
To clarify allera's post, the first reply already had the gzip switch in, that's what the z is for :)

The additional switch was v which turns on verify.

webx
06-29-2002, 12:50 PM
Originally posted by chirpy
The additional switch was v which turns on verify.

v is for verbose :)

chirpy
06-29-2002, 01:18 PM
Quite right, should have checked what _I_ posted when correcting someone :rolleyes: