Migrate IIS 7.5 to IIS 10 & Directory Data

prerequistis

Migrate IIS Site FTPAPP-STAGE

### Step1 - get-dependencies ###
On source system
Note: Always stay in msdeploy installation folder to excecute the msdeploy commandlets (C:\Program Files\IIS\Microsoft Web Deploy V3).

msdeploy.exe -verb:getdependencies -source:apphostconfig="FTPAPP-Stage" 

### Step2 - Create Package (.zip) of FTPAPP-STAGE Sitze ###
On source system
Note: Maybe you need the encrypt parameter to create the package. In this example we need it.

msdeploy.exe -verb:sync -source:apphostconfig="FTPAPP-Stage" -enableLink:AppPoolExtension -dest:package=d:\FTPAPP-StageSite.zip,encryptPassword=IIS123 > package.log

### Step3 - We need to find the configuration of the web site by running the „dump“ operation. ###
On destination
Note: Copy the created package from step2 first to destination system. After that we can run the next commandlet.

msdeploy.exe -verb:dump -source:package=d:\FTPAPP-StageSite.zip,encryptPassword=IIS123 -xml>  XMLinfo.log

OPTIONAL: If nessesary change Website configuration for destination path and create new .zip file for the import Therefor we have to look at the created XMLinfo.log file. The highlighted section is what needs to replaced with the different drive.

msdeploy.exe -verb:sync -source:apphostconfig="FTPAPP-Stage" -enableLink:AppPoolExtension 
-dest:package=c:\ModifiedSite.zip -replace:objectName=VirtualDirectory,targetAttributeName=physicalPath,
match="\\ALT",replace="D:\NEU" -replace:objectName=dirPath,targetAttributeName=path, 
match="\\ALT",replace="D:\NEU"

### Step4 Import package - First show what happen -whatif##
On destination

msdeploy -verb:sync -source:package=D:\FTPAPP-StageSite.zip,encryptPassword=IIS123 -dest:apphostconfig="FTPAPP-Stage" -whatif

### Step5 Import package finally ##

msdeploy -verb:sync -source:package=D:\FTPAPP-StageSite.zip,encryptPassword=IIS123 -dest:apphostconfig="FTPAPP-Stage"

SOURCE: Follow the following MS Blog:
https://blogs.msdn.microsoft.com/webtopics/2015/04/27/simple-steps-in-migration-of-websites-using-webdeploy/

Migrate Data from source to destionation server

#### Step1 - For moving directorys we use ROBOCOPY ####

ROBOCOPY SOURCE \\Destination /MIR /SEC /SECFIX /LOG:D:\Logs\Log.txt

#### Step2 -After Data migration we need to set the share information on the mirored directories ####
On source system
Type following commandlet:

reg export "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares" c:\export.reg

On destionation
Import the file:

reg import c:\export.reg

Test cases after IIS & Data Migration

  • Check permissions (Service_Accounts) on virtualDirectorys in IIS
  • Check IIS directory links
  • Check NFTS permissions after miroring
  • Check ROBOCOPY log for error output
  • Brows to SoftwareRep directorys
  • Change physical path from IIS SITE FTP-Stage to new (server)path for testing - after testing change it back to old path
  • Testing access over FileZilla

Finally ToDo

  • Rename IP Adress and Hostname from destination system (rename to: oldHostname; oldIP)
  • Configure Browse directorys (example: http://localhost/test)
  • Configure authentification methodes analog to old system
  • Change Log file location to D:\

Final Test after IP Adress and Hostname switching

Interner Aufruf:
URL: internalName.domain.com
IP: sourceSystem-IP

Externer Aufruf über Loadbalancer:
URL: extern.domain.com
IP: LB IP

 
 webserver_iis.txt · Zuletzt geändert: 2018/11/23 10:58 von 165.225.72.80
[unknown button type]
 
Recent changes RSS feed Driven by DokuWiki