Link to home
Start Free TrialLog in
Avatar of Bash
BashFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Migrate iis6 sites to iis7.5 - different directory on target

I'm migrating 3 sites from Server 2003 iis6 to 2008 r2 iis7.5 using MS deploy 3.5 via the packaging method.

The sites on the source server are located on the E;: yet the destination server only has a C:

Will using the below command work? I have done a whatif and can see the following lines which to me indicates there maybe issues as E: is referenced or is that reference purely to the location of the site on the source?:

If my commands won't work, what do I need to do to make the sites go to C:\inetpub\wwwroot on the destination server?

Package creation: C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:metakey
=lm/w3svc/[SITEID] -dest:package=e:\temp\[SITEID].zip > e:\temp\WebDeplo
yPackage.log

Package Import: C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:package=c:\temp\[SITEID].zip -dest:metakey=lm/w3svc/[SITEID]  > c:\temp\WebDeploySync.log

Sample entries from log file:
Info: Adding MSDeploy.metaKey (MSDeploy.metaKey).
Info: Adding metaKey (/lm/w3svc/[SITEID]).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/ServerComment).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/ServerAutoStart).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/LogPluginClsid).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/ServerBindings).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/filters).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/root).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/root/Path).
Info: Adding directory (E:\Wiki).
Info: Adding file (E:\Wiki\AccessDenied.aspx).
Info: Adding file (E:\Wiki\Web.config).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/root/aspnet_client/DirBrowseFlags).
Total changes: 1383 (1383 added, 0 deleted, 0 updated, 0 parameters changed, 15380183 bytes copied)

I am also able to use the remote sync capability of ms deploy terefore pulling the data from the source server  (which I think I prefer) which gives the below, again my query is regarding the E: reference:

nfo: Using ID '471e8d69-8279-4150-8117-d212a22f3a26' for connections to the remote server.
Info: Adding MSDeploy.metaKey (MSDeploy.metaKey).
Info: Adding metaKey (/lm/w3svc/[SITEID]).
Info: Adding child metaKey (/lm/w3svc/[SITEID[/ServerComment).
Info: Adding child metaKey (/lm/w3svc/[SITEID]/root/Path).
Info: Adding directory (E:\Wiki).
Total changes: 1400 (1400 added, 0 deleted, 0 updated, 0 parameters changed, 15380183 bytes copied)
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.