scrubbicus Posted March 28, 2011 Share Posted March 28, 2011 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 More sharing options...
trq Posted March 28, 2011 Share Posted March 28, 2011 I would be more inclined to execute a command line program via exec and get it all done in one go. Link to comment https://forums.phpfreaks.com/topic/231914-zipping-all-files-in-an-entire-server/#findComment-1193131 Share on other sites More sharing options...
scrubbicus Posted March 28, 2011 Author Share Posted March 28, 2011 What might that look like? Link to comment https://forums.phpfreaks.com/topic/231914-zipping-all-files-in-an-entire-server/#findComment-1193142 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.