Previous Next

Thread: new site id on sync?

Last post 06-17-2008 7:24 PM by ksingla. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-13-2008, 10:13 AM

    • Ahongens
    • Not Ranked
    • Joined on 06-13-2008, 2:02 PM
    • The Netherlands
    • Posts 1
    • Ahongens

    new site id on sync?

    Hey, I really love the msdeploy tool!

    I used it to migrate three servers from IIS6 to IIS7 on Win2008. I created a vbscript file to create a batch file that backs up every site to a folder on disk. Then I reinstalled the machine to Win2008, and using the verb:migrate I restored the sites. The new sites automatically got the correct site id, so the logs remain in the same folder. Great!

    However, now I want to use msdeploy for disaster recovery (side by side with the new block-level windows server backup). I extract a list of all sites, and backup each site to a folder on disk again. Then I zip the directories, and copy the zips off-site.

    When I test the restore, and do:

    msdeploy.exe -verb:sync -source:archivedir="d:\backups\www.domain.com" -dest:appHostConfig="www.domain.com"

    It creates the site, restores all content, etc. It works fine. However, the site is assigned a new IIS id. For all my scripts, logfile locations etc, I don't want IIS to assign me a new ID.

    I can find the old site id in the XML files and I can change it manually, but I'd rather have MSDeploy restore the old site id.

    Is this possible? (Or perhaps for a future version?)

     

    Greetings from the Netherlands..

  • 06-17-2008, 7:24 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 428
    • ksingla

    Re: new site id on sync?

    Hi Ahongens,

    No, this is not possible right now but we made the change to the tool to try using the siteId from source if possible. So this will be possible in our next release.

    -Kanwal-

Page 1 of 1 (2 items)
Page view counter