Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Mirror directories between servers in IIS?

Posted on 2007-03-29
3
Medium Priority
?
824 Views
1 Endorsement
Last Modified: 2012-06-27
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!
1
Comment
Question by:greatseats
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 1

Accepted Solution

by:
pettersk earned 2000 total points
ID: 18819191
If the two webservers are available via a LAN/WAN or have a VPN connection through the internet you should be able to use either:
a) Microsoft RoboCopy (a free utility from Microsoft) which will do the copy job

        http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
        http://www.microsoft.com/technet/technetmag/issues/2006/11/UtilitySpotlight/default.aspx

b) If the two servers are members of an Active Directory you can use DFS - Distributed File System

http://technet2.microsoft.com/WindowsServer/f/?en/library/9896c017-3c19-44e4-b73b-54c2821b88ae1033.mspx

Hope this helps...
0
 
LVL 1

Expert Comment

by:pettersk
ID: 18819258
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
0
 
LVL 1

Expert Comment

by:pettersk
ID: 18819299
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....
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Loops Section Overview
Screencast - Getting to Know the Pipeline

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question