How to auto-update a website mirror with exceptions to certain pages?

Posted by tomatosalad on Super User See other posts from Super User or by tomatosalad
Published on 2012-11-03T21:59:36Z Indexed on 2012/11/03 23:05 UTC
Read the original article Hit count: 164

Filed under:
|
|
|
|

I'm currently mirroring a website on my server. The site itself is rarely updated, but it is updated enough that info can become outdated quickly.

I mirrored it first with wget, and this worked fine, but I made some changes:

  • The original index.html used frames, but the site also provides a main.html which is essentially index.html but without frames. I deleted index.html and renamed main.html.
  • I did not want to mirror the webchat, blog or forum, so I deleted those files and directories and made directories "blogs" "forum" and "chat" and placed a php redirect in each of those, redirecting visitors to the orignal site.

I'd like to auto-update the mirror (maybe once every 24-72 hours), but preserve the changes I made. Is this possible? How would I go about doing it? I am completely clueless as to how.

Thanks for any and all help! :)

© Super User or respective owner

Related posts about script

Related posts about automation