« Previous Next »

Thread: Migrating entire server?

Last post 10-29-2009 4:11 PM by jhartbarger. 10 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (11 items)

Sort Posts:

  • 10-25-2009, 4:50 PM

    Migrating entire server?

     I am looking to migrate my entire IIS 6 server to a new IIS 7 server. What is the commandline to migrate all sites at once, to say a folder on the C drive, and then run the command on the IIS7 server to read the folder?

    I don't have LAN connectivity between the servers, as they are at seperate sites over a wan.

  • 10-25-2009, 8:25 PM In reply to

    Re: Migrating entire server?

    To archive the 6.0 server,

    msdeploy -verb:sync -source:webserver60 -dest:archivedir=c:\mymagicdir

    To instantiate the new 7.0 server,

    msdeploy -verb:sync -source:archivedir=c:\mymagicdir -dest:webserver60

    That should be it.  Note:

    1) If you want to skip the content copy for some reason (i.e. just want to copy the configuration), add a "-disableLink:Content" to the command line on both commands. 

    2) The second command line is a little confusing since it still refers to webserver60.  But it is intentional.  When you run this command on an IIS 7 server, we will convert the metabase settings over to the new config system of IIS 7. 

    3) If you run a command with "-whatif", we'll just tell you what we would do.  That might be useful for debugging purposes as you play with the tool.

    Hope everything works.  Let us know if you have any issues.

  • 10-29-2009, 2:22 PM In reply to

    Re: Migrating entire server?

     When I try this I get the following error

    C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:sync-source:nocextweb001.xxxxxxxxx.org -dest:archivedir=c:\nocextweb

    Error: Unknown factory 'nocextweb001.xxxxxxxxxxx.org'.
    Error count: 1.

     

    Any ideas?

  • 10-29-2009, 2:29 PM In reply to

    Re: Migrating entire server?

    msdeploy -verb:sync -source:webserver60 -dest:archiveDir=C:\nocextweb

    The source argument needs to be a provider from the list of providers supported as specified here Since you need to migrate all sites and settings from iiS6 to an archive and then onto an IIS7 box you can use the webserver60 provider.

    ArchiveDir is also a provider.

    The above command makes msdeploy sync the entire webserver to an archive for which you give the path as c:\nocextweb.

    Then you can sync it from this archivedir as

    msdeploy -verb:sync -source:archiveDir=C:\nocextweb -dest:auto

    Let us know if you need more information.

     

  • 10-29-2009, 2:54 PM In reply to

    Re: Migrating entire server?

    Ok now I understand and my apologizes as this is my first run with msdeploy, Now next error is

     Error: The property 'value' located at '/webServer60/metaKey[@path='/LM/W3SVC']/
    metaProperty' is marked as secure. You must specify an encryption password to ar
    chive this property.
    Error count: 1.
     

    I am running

    msdeploy -verb:sync -source:webserver60,encryptPassword=pass -dest:archiveDir=C:\nocextweb

  • 10-29-2009, 3:06 PM In reply to

    Re: Migrating entire server?

    msdeploy -verb:sync -source:webserver60 -dest:archiveDir=C:\nocextweb,encryptPassword=pass

     This should work. You can read more about this here

  • 10-29-2009, 3:12 PM In reply to

    Re: Migrating entire server?

     thanks a ton!

  • 10-29-2009, 3:53 PM In reply to

    Re: Migrating entire server?

     Ok now I feel like a moron, I am trying to sync it on the R2 server now running

     msdeploy -verb:sync -source:archiveDir=d:\nocextweb -dest:auto,encryptPassword=pass

     

    And I get this error even though I am using the same password I used to archive it:

    Error: The property 'value' located at '/webServer60/metaKey[@path='/LM/W3SVC']/
    metaProperty[@name='AnonymousUserPass']' is encrypted. To extract the property f
    rom the archive, you must specify the same password that was used to encrypt the
     property.
    Error count: 1.


  • 10-29-2009, 3:58 PM In reply to

    • EmilyK
    • Not Ranked
    • Joined on 02-15-2008, 10:14 PM
    • Posts 9

    Re: Migrating entire server?

    msdeploy -verb:sync -source:archiveDir=d:\nocextweb,encryptPassword=pass -dest:auto

     should work.

    - Emily
  • 10-29-2009, 4:03 PM In reply to

    Re: Migrating entire server?

    MsDeploy also ships with a UI in inetmgr. You can create or import server packages using Inetmgr UI. The UI would prompt you to enter a password while packaging(if any data in your config file requires encryption) or unpackaging (if it needs one to decrypt the content of the package).

  • 10-29-2009, 4:11 PM In reply to

    Re: Migrating entire server?

     thanks guys

Page 1 of 1 (11 items)
Microsoft Communities