Simple active/passive server replication without shared datastoreRSS

5 replies

Last post Dec 02, 2019 08:09 AM by Jalpa Panchal

  • Simple active/passive server replication without shared datastore

    Nov 25, 2019 05:26 PM|micleo|LINK

    I'm running Windows Server 2019 with IIS 10.0.17763.1, I have a VM in a datacenter in one state and a VM in another datacenter in a second state with no real connection between the two. I'm running SmarterMail as a low cost alternative to office365 for some of my penny-pinching clients. Right now I have syncthing replicating in (near) real-time any data that changes on the application directories between the two including mailstores.

    I found a website: https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/synchronize-iis but it seems to be woefully out of date, and I installed the web deploy but the command failed because versions changed and such. 

    A way to easily automate it would be nice also, the site settings don't change much, only when I add a client or such, certainly not on a daily basis, but I have not yet gone-live so in the coming weeks I'll be moving clients from Kerio Connect and would need to update and restore at least 40 times at that point. But after that, I don't expect it to change much for months at a time. Simpler the better.

  • Re: Simple active/passive server replication without shared datastore

    Nov 25, 2019 07:27 PM|lextm|LINK

    micleo

    I installed the web deploy but the command failed because versions changed and such. 

    In which way? Would you mind posting the actual errors from the command?

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Simple active/passive server replication without shared datastore

    Nov 25, 2019 08:09 PM|micleo|LINK

    'msdeploy' is not recognized as an internal or external command, operable program or batch file. And I followed https://docs.microsoft.com/en-us/iis/install/installing-publishing-technologies/installing-and-configuring-web-deploy-on-iis-80-or-later so I have the deploy options visible.

  • Re: Simple active/passive server replication without shared datastore

    Nov 25, 2019 08:22 PM|lextm|LINK

    micleo

    'msdeploy' is not recognized as an internal or external command, operable program or batch file.

    What that article won't tell you is you need to run full path of the executable, such as "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe".

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Simple active/passive server replication without shared datastore

    Nov 25, 2019 08:29 PM|micleo|LINK

    It also doesn't specify what 

     - Install the remote agent service on the source or the destination depending on if you want to "pull" the data from a remote source or "push" the data to a remote destination.

    means or how to do so.

  • Re: Simple active/passive server replication without shared datastore

    Dec 02, 2019 08:09 AM|Jalpa Panchal|LINK

    Hi,

    to run the msdeploy command you need to first enter to the directory:

    C:\Program Files\IIS\Microsoft Web Deploy V3 

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.