Solved

Mirror directories between servers in IIS?

Posted on 2007-03-29
3
801 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
  • 3
3 Comments
 
LVL 1

Accepted Solution

by:
pettersk earned 500 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

825 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