gsnedders
08-15-2004, 12:29 AM
OK, let's say I want to compress all of /thefolder/, and save it at / as backup.gz, how could I go about doing this?
|
||||
gzwritegsnedders 08-15-2004, 12:29 AM OK, let's say I want to compress all of /thefolder/, and save it at / as backup.gz, how could I go about doing this? firepages 08-15-2004, 03:06 AM you would first need to make a tarball of the content of that folder then compress that tar file , I think PEAR has a tar class , or perhaps in PECL . else exec() , e.g. <? exec('tar -cf thefolder.tar thefolder'); ?> of course if you are exec()ing anyway you can also compress at the same time <? exec('tar -czf thefolder.tgz thefolder'); ?> gsnedders 08-15-2004, 11:18 AM OK, thanks, time to try it out... |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum