locked
copy data IIS to IIS RRS feed

  • Question

  • User-278624196 posted

    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

    Tuesday, March 30, 2021 4:37 PM

All replies

  • User690216013 posted

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

    Tuesday, March 30, 2021 7:03 PM
  • User-278624196 posted

    Hi Expert, 

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

    Roemesh

    Tuesday, March 30, 2021 7:54 PM
  • User690216013 posted

    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.

    Wednesday, March 31, 2021 1:06 AM
  • User-278624196 posted

    Any other links which shows easy to understand

    Tuesday, April 6, 2021 2:59 AM
  • User1065476709 posted

    Hi 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

    Tuesday, April 6, 2021 9:41 AM
  • User-278624196 posted

    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

    Tuesday, April 6, 2021 10:06 AM
  • User1065476709 posted

    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

    Wednesday, April 7, 2021 8:29 AM
  • User-278624196 posted

    What is prems deploy stand for

    Thursday, April 8, 2021 3:25 AM
  • User1065476709 posted

    Hi 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

    Thursday, April 8, 2021 9:46 AM
  • User-278624196 posted

    HI Expert,

    i too the back up using above command and  have done the IIS Installation on target server  but it is remote server and no connectivity so what would be the next step


    C:\Users\Shelar_qa>cd %windir%\system32\inetsrv\

    C:\Windows\System32\inetsrv>cd %windir%\system32\inetsrv\appcmd add backup "PreMsDeploy"
    The system cannot find the path specified.

    C:\Windows\System32\inetsrv>cd %windir%\system32\inetsrv\appcmd add backup "PreMsDeploy"

    C:\Windows\System32\inetsrv>appcmd add backup "PreMsDeploy"
    BACKUP object "PreMsDeploy" added

    C:\Windows\System32\inetsrv>

    this would  be the  next step i guess

    net start msdepsvc( what is this step is doing

    msdeploy -verb:sync -source:apphostconfig="Default Web Site" -dest:apphostconfig="Default Web Site",computername=Server1 -whatif > msdeploysync.log( In this case no connectivity in source and target)

    Thursday, May 6, 2021 12:26 PM