rckehoe Posted February 10, 2011 Share Posted February 10, 2011 I don't really have an issue with my script... I simply want to know if it is a bad practice to create a script that recurses through your root directory and zips up everything into one large zip file... I am creating a backup deal for my site and my site is rather large... Is this considered bad practice? Link to comment https://forums.phpfreaks.com/topic/227232-question-about-php-practice/ Share on other sites More sharing options...
requinix Posted February 10, 2011 Share Posted February 10, 2011 No, nothing wrong with that. However for a simple task like that you generally don't see PHP scripts for it. More often just a shell command, like $ tar -cvzf backup_`date '+%Y-%m-%d'`.tgz /path/to/web/root Link to comment https://forums.phpfreaks.com/topic/227232-question-about-php-practice/#findComment-1172203 Share on other sites More sharing options...
rckehoe Posted February 13, 2011 Author Share Posted February 13, 2011 I apprecaite the suggestion, however... The reason I developed a PHP script in the first place is because I don't have access to the shell... Link to comment https://forums.phpfreaks.com/topic/227232-question-about-php-practice/#findComment-1173479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.