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..