PDA

View Full Version : Creating a tarball of files on my site...


UnnDunn
4-15-05, 03:12 PM
I'd like to create a tarball of a directory on my site. It has to be a tarball in order to preserve permissions settings.

Is there a way to do this without installing some hokey shell access script?

Galax
4-17-05, 09:13 PM
sure, simply write a Perl or PHP script to tar the files for you. You can access command line tools from PHP using exec(), system() or passthru(). Unfortunately I do not know what the equivilent functions in Perl are though.