« Previous Next »

Thread: Sync between two IIS7 servers

Last post 08-04-2008 4:06 PM by yaminij. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 08-04-2008, 2:10 PM

    • TrondRoar
    • Not Ranked
    • Joined on 08-04-2008, 12:25 PM
    • Posts 1

    Sync between two IIS7 servers

    I am trying to fig out how to sync 2 servers. Both running IIS7. I started with msdeploy -verb:getDependencies -source:webServer and made sure both has the same services. I then test with msdeploy -verb:sync -source:webServer,computerName=Server1 -dest:webServer -whatif >msDeploySync.log. The log shows me that i get an (401) Unauthorized.

    So im trying to fig out how to write the command so that it passes on username and password, but no success.

    What i am trying to do is to sync all websites from server1 to server2. And also all content (folders) from d:\www on server1 to D:\www on server2.

    If anyone has a tip that can set me of i would appreciate it a lot. Like a command :-)

  • 08-04-2008, 4:01 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 187

    Re: Sync between two IIS7 servers

    This is the command to pass userName and password parameters.

    msdeploy -verb:sync -source:webServer,computerName=Server1,userName=<userName>,password=<password> -dest:webServer

    if d:\www is the contentpath for a website on the source server machine,msdeploy will automatically sync content along with config when you run the above command through link extensions. Link extensions are covered here http://blogs.iis.net/msdeploy/archive/2008/02/06/core-components-of-microsoft-web-deployment-tool.aspx.

     

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 08-04-2008, 4:06 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 187

    Re: Sync between two IIS7 servers

    if d:\www is NOT the root path of a site or an app and is just another physical directory on the source machine, and you want to sync it to destination along with the rest of the server's config and content, you should create a manifest.xml. Please check faith's post here http://forums.iis.net/p/1150846/1875695.aspx#1875695 for more information on creating a manifest file

     

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
Page 1 of 1 (3 items)
Microsoft Communities