Link to home
Start Free TrialLog in
Avatar of greatseats
greatseatsFlag for United States of America

asked on

Mirror directories between servers in IIS?

Experts,

I have two web servers that are hosted in two different locations.  I have a number of files that I would like to share between the two servers.  Both servers run the latest version of IIS.

Currently whenever I make changes to certain files on my first web server I have to manually copy those files onto the other server.  Is there any way to "mirror" a directory from one web server onto another?  Ideally when I update the files on one web server I would like them to be updated automatically on my other server (even if there is a delay of a few hours that would be better than nothing).  Thanks!
ASKER CERTIFIED SOLUTION
Avatar of pettersk
pettersk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pettersk
pettersk

In fact you also have (at least) a third and a fourth method with MS technology:

A) Using BITS - Background Intelligent Transfer Service, but you do have to have BITS installed and
     enabled on both webservers - don't know if you have the option of installing it or getting it installed.
   
     A very good article on BITS is here:
             http://www.simple-talk.com/dotnet/.net-tools/using-bits-to-upload-files-with-.net/

     Some MS information:
             http://msdn.microsoft.com/library/en-us/bits/bits/setting_up_the_server_for_uploads.asp?frame=true


B) Using plain old fashioned FTP and some scripts to do the job
There is even the option of using RSYNC:

       http://en.wikipedia.org/wiki/Rsync

Although this is a Unix/Linux thing originally there are several utilities providing this on Windows and you could even use Cygwin to accomplish this .... depening on the environment and control/access you have to the webservers....