Jump to content

Zipping all files in an entire server


scrubbicus

Recommended Posts

I'm trying to find a way to back up an entire servers file through PHP. I have a script that can take selected files into a zip file but I'm not sure how to make sure that when I loop through directory and files that I get every single file.

 

I was thinking of just foreach(glob('*') as $file up to 10 times but I'm hoping there's something more definite then that method...

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/231914-zipping-all-files-in-an-entire-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.