How to nightly update a copy folder of main website?

Posted by HollerTrain on Stack Overflow See other posts from Stack Overflow or by HollerTrain
Published on 2010-05-26T07:21:06Z Indexed on 2010/05/26 7:31 UTC
Read the original article Hit count: 140

Filed under:

I have a main website, then I have a backup of the main site in another folder on the server to be used if main site goes down I can push traffic to my copy of the main site.

With that said I want to nightly update the copy site with the updated files made to the main site from the prior day's updates to text files and new images. What is best method of doing this automatically every 24 hours? I assume a cron script could be created for this need?

Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about server