We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

copy data IIS to IISRSS

9 replies

Last post Apr 08, 2021 09:46 AM by samwu

  • copy data IIS to IIS

    Mar 30, 2021 04:37 PM|Roemesh|LINK

    Hi Expert,

    How best we can copy data from IIS to IIS between two servers which will overwrite the changes will alll config file . Is it the only copy paste or we have any other method i.e. Deployment method

    Romesh

  • Re: copy data IIS to IIS

    Mar 30, 2021 07:03 PM|lextm|LINK

    If you don't use the Web Deployment tool to sync contents among servers, then manually or PowerShell based copy/paste is unavoidable. 

    Lex Li
    Want to have a chat on the issues you meet? Find me at https://booktime.xyz/p/lextm
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: copy data IIS to IIS

    Mar 30, 2021 07:54 PM|Roemesh|LINK

    Hi Expert, 

    Could you help me the parameters fotr the web deployment method.. Have download it

    Roemesh

  • Re: copy data IIS to IIS

    Mar 31, 2021 01:06 AM|lextm|LINK

    https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/synchronize-iis 

    Manually configure one machine and then you can sync to all others.

    Lex Li
    Want to have a chat on the issues you meet? Find me at https://booktime.xyz/p/lextm
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: copy data IIS to IIS

    Apr 06, 2021 02:59 AM|Roemesh|LINK

    Any other links which shows easy to understand

  • Re: copy data IIS to IIS

    Apr 06, 2021 09:41 AM|samwu|LINK

    Hi Roemesh,

    Roemesh

    Any other links which shows easy to understand

    Is there anything you can't understand about the above link? The official document is already the best reference document.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: copy data IIS to IIS

    Apr 06, 2021 10:06 AM|Roemesh|LINK

    Hi Expert,

    where we have to run this script

    msdeploy -verb:getDependencies -source:apphostconfig="Default Web Site"

    &

    %windir%\system32\inetsrv\appcmd add backup "PreMsDeploy"

    Roemesh

  • Re: copy data IIS to IIS

    Apr 07, 2021 08:29 AM|samwu|LINK

    Hi Roemesh,

    Roemesh

    where we have to run this script

    msdeploy -verb:getDependencies -source:apphostconfig="Default Web Site"

    &

    %windir%\system32\inetsrv\appcmd add backup "PreMsDeploy"

    C:\Windows\System32\cmd.exe

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: copy data IIS to IIS

    Apr 08, 2021 03:25 AM|Roemesh|LINK

    What is prems deploy stand for

  • Re: copy data IIS to IIS

    Apr 08, 2021 09:46 AM|samwu|LINK

    Hi Roemesh,

    Roemesh

    What is prems deploy stand for

    You should understand it together with add backup, not separately.

    Always make a backup of the destination and source servers. Even if you are just testing, it allows you to easily restore the state of your server. Run the following command to backup an IIS 7 or above server:

    %windir%\system32\inetsrv\appcmd add backup "PreMsDeploy"

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >