I have two servers using MS NLB for IIS and this is working great.

I have a D:\Websites\ directory on both servers that contain the html, css, aspx, and images etc. I would like to have the D:\Websites\ directory on ServerA be replicated to D:\Websites\ on ServerB. I don't need any snyc, just a brute copy/replace from ServerA -> ServerB.

What is the best way to achieve this?

link|improve this question

feedback

4 Answers

up vote 3 down vote accepted

Robocopy is probably the best choice for a simple copy.

robocopy src dst /mir
link|improve this answer
Should I set this up as a scheduled task on ServerA? – Nate Bross Jul 2 '09 at 20:49
Yes, unless you really want to sit there and run it manually. :) – John Gardeniers Jul 2 '09 at 22:23
Thanks for the witty sarcasm John ;) – Nate Bross Aug 5 '09 at 22:42
feedback

You could use Distributed File System, but it's probably overkill.

We just use Robocopy + batch file + scheduled tasks to copy this from 1 server to 3 others. Robocopy is available for Server 2003 as part of the Resource Kit tools, or built-in to Server 2008.

link|improve this answer
feedback

Seems better to be using features built into IIS, that it was designed to use, than using a bunch of extra points of failure, like Scheduled Tasks, and Scripts etc.

You could share the folder on ServerA, and then change ServerB IIS settings for the site so that the Home Directory is set to "A share located on another computer" - which you would then point back to the share on ServerA

If redundancy is a concern, you could move the data to a different server altogether, share it, then do as I mentioned above to both ServerA and ServerB.

Just thinking out loud!

alt text

link|improve this answer
I thought about this, but I chose robocopy since I trust a scheduled task as a point of failure more than a network file server. – Nate Bross Aug 5 '09 at 22:41
feedback

I like Super Flexible File Synchronizer for this because it has built in logging and email notification for failure.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.