« Previous Next »

Thread: archive metakey and dependencies

Last post 08-01-2008 5:22 PM by faith_a. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 08-01-2008, 11:43 AM

    archive metakey and dependencies

    Hi..  newbie here to msdeploy and trying to get through what are probably some basic problems:

    FYI,

    We have a server farm web1,2,3,4 and use DFS on our Database servers..  Basically for now I would like to be able to archive the metadatabase information just to a archive folder and test restoring that infomation and their dependancies.  IE backup Delete IIS information and App pool information and restore with msdeploy.  

    so archiving just one site without the dependencies is fine:

     msdeploy.exe -verb:sync -source:metakey=lm/w3svc/1 -dest:archivedir=c:\archive > webdeployarchive.log

    where 1 would be changed to whatever metakey you want to back up..  but how do I make it also grab the app pools too?  

    i.e
    msdepoy.exe -verb:sync -source:metakey=lm/w3svc/apppools/XXXXX -dest:archivedir=c:\archive > test.log

    this gives an error of:

     Fatal: The source '/lm/w3svc/apppools/XXXXX' and destination '/lm/w3svc/1' are at different levels of hierarchy in the configuration system. This can have unexpected consequences. Please make sure that the paths are correct.
    Fatal: The dependency check 'ProviderPathLevelMismatch' found issues up to 'Fatal' level that must be resolved before the current operation can be processed.  See previous messages.
    Change count: 0
    Fatal count: 2

     

     If someone could give me some example code of this point me in the right direction it would be deeply appreciated.

     

     

     

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

    Re: archive metakey and dependencies

    You can archive both apppools and sites using the following command

    msdeploy.exe -verb:sync -source:metaKey=lm/w3svc -dest:archiveDir=c:\archive

    and then restore using the following command

    msdeploy.exe -verb:sync -source:archivedir=c:\archive -dest:metaKey=lm/w3svc

     

    Alternatively, you can use webserver60 provider to completely sync 2 servers as in the following example

    msdeploy.exe -verb:sync -source:webserver60 -dest:archiveDir=c:\archive

    and then restore using

    msdeploy.exe -verb:sync -source:archivedir=c:\archive -dest:webserver60.

     Hope this helps

    Thanks!

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 08-01-2008, 5:22 PM In reply to

    Re: archive metakey and dependencies

    One other thing you can do is use a manifest if you want something in between manually doing each element, or doing the entire server.

    The manifest is covered in more detail in the chm or at http://learn.iis.net/page.aspx/423/using-custom-manifests/.

    Usage: -source:manifest=manifest.xml -dest:manifest=manifest.xml or -dest:archive=c:\myapp

    Format:

    <manifestFile>

    <metakey path="lm/w3svc/1" />

    <metakey path="lm/apppools/defaultapppool" />

    </manifestFile>

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (3 items)
Microsoft Communities