Cherry Posted November 26, 2009 Share Posted November 26, 2009 How would I compress 2 folders, every day at a specific time, and then move them to another folder after the compression was succesful? Link to comment https://forums.phpfreaks.com/topic/183027-auto-compression-at-certain-times/ Share on other sites More sharing options...
l0ve2hat3 Posted November 26, 2009 Share Posted November 26, 2009 <?php $command = "tar -pczf /path/to/destination/ /path/to/source/*" system($command); ?> Link to comment https://forums.phpfreaks.com/topic/183027-auto-compression-at-certain-times/#findComment-965960 Share on other sites More sharing options...
Cherry Posted November 26, 2009 Author Share Posted November 26, 2009 <?php $command = "tar -pczf /path/to/destination/ /path/to/source/*" system($command); ?> Thanks, but I dont think that is going to work on windows? Link to comment https://forums.phpfreaks.com/topic/183027-auto-compression-at-certain-times/#findComment-965999 Share on other sites More sharing options...
MatthewJ Posted November 26, 2009 Share Posted November 26, 2009 http://devzone.zend.com/article/2105 Link to comment https://forums.phpfreaks.com/topic/183027-auto-compression-at-certain-times/#findComment-966009 Share on other sites More sharing options...
l0ve2hat3 Posted November 28, 2009 Share Posted November 28, 2009 http://www.phpclasses.org/browse/file/19011.html Link to comment https://forums.phpfreaks.com/topic/183027-auto-compression-at-certain-times/#findComment-966992 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.