WebDeploy Sync IIS6 Document download
Brief introduction
WebDeploy is a simple application developed by Microsoft for IIS management. WebDeploy is deployed on IIS6 by simple command-line scripting applications to IIS7 Application Server transfer, IIS6 application Server synchronization, and IIS7 Application Server synchronization. WebDeploy synchronization contains synchronization of IIS configuration and deployed applications. It is worth noting that you are backing up before any action is taken on IIS.
Application environment
- . Net Framework 2.0 SP1 or later
- Web Deployment Tool 1.0
Sync mode
- Push push way, sync local server to remote server
- Pull, synchronizing remote server to target server
- Independent Sync
- Manually sync, the packaged site is replicated to the remote server.
Download Address
Http://www.iis.net/expand/WebDeploy
Install WebDeploy
Installation WebDeploy will be installed on the server
Remote Agent Service
Service, which is responsible for listening for HTTP requests for administrative operations. WebDeploy Default Listener http://+/MSDEPLOYAGENTSERVICE/. %20%0D because Web applications are generally listeningBecause Web applications are typically listening on port 80, we need to modify the default configuration. Create a bat file and execute:
msiexec/i <msi_filename>/passive Addlocal=all listenurl=http://servername:9999/msdeployagentservice/
Test installation
- Start the service: Net start msdepsvc
- Enter the listener address in the browser such as http://ServerName:9999/MSDEPLOYAGENTSERVICE/
- The correct page response result is 500 error
Figure: Test WebDeploy Installation
Step to see site dependencies
Command: MSDEPLOY-VERB:GETDEPENDENCIES-SOURCE:METAKEY=LM/W3SVC/1 View the IIS site configuration environment dependencies and set the appropriate settings on the target server. For example, permissions, dependencies, and so on.
- METAKEY=LM/W3SVC/1 is used in IIS6, where "1" is the site identity. You can click on the site to view it through IIS Manager.
- apphostconfig= "Default Web site" is used in IIS7 for the site name.
Step 2– View IIS Synchronization
Command:
MSDEPLOY-VERB:SYNC-SOURCE:METAKEY=LM/W3SVC/1-dest:metakey=lm/w3svc/1,computername=server1:9999-whatif > Msdeploysync.log
MSDEPLOY-VERB:SYNC-SOURCE:METAKEY=LM/W3SVC/1,COMPUTERNAME=SERVER1-DEST:METAKEY=LM/W3SVC/1-whatif > Msdeploysync.log
If you do not have access rights, you need to provide a username and password, parameters: Username,password. The IIS synchronization update information is written to the Msdeploysync.log log file. Directory Address: Program Files\iis\microsoft Web Deploy.
Step 3-Perform IIS synchronization
After the check is complete, remove the-whatif label from the command
MSDEPLOY-VERB:SYNC-SOURCE:METAKEY=LM/W3SVC/1-dest:metakey=lm/w3svc/1,computername=server1:9999 > Msdeploysync.log
MSDEPLOY-VERB:SYNC-SOURCE:METAKEY=LM/W3SVC/1,COMPUTERNAME=SERVER1-DEST:METAKEY=LM/W3SVC/1 > Msdeploysync.log
Other
IIS Configuration Backup
- Backup: iisback/backup/b <filename>
- View Backup list: Iisback/list
- Recovery: iisback/resotre/b <filename>
IIS APP POOL
Msdeploy-verb:sync-source:metakey=lm/w3svc/apppools-dest:archivedir=c:\apppoolconfig,encryptpassword=testiis
Msdeploy-verb:sync-source:archivedir=c:\apppoolconfig,encryptpassword=testiis-dest:metakey=lm/w3svc/apppools
Other resources
- Use Iisback.vbs to back up IIS configuration http://technet.microsoft.com/zh-cn/library/cc775682 (ws.10). aspx
- WebDeploy feature preview http://learn.iis.net/page.aspx/346/web-deploy/
- Merging IIS6http://blogs.msdn.com/rakkimk/archive/2010/03/02/ Msdeploy-can-i-use-it-to-migrate-my-iis6-to-another-iis6-oh-yes.aspx