?
Solved

Mirror directories between servers in IIS?

Posted on 2007-03-29
3
Medium Priority
?
817 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

762 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