Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
08-15-2004, 01:29 AM #1
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?
08-15-2004, 04:06 AM #2
- Join Date
- May 2002
- Perth Australia
- Thanked 101 Times in 99 Posts
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');
MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
08-15-2004, 12:18 PM #3
OK, thanks, time to try it out...