IIS Migration and Synchronization tool, Web Deploy (Technical Preview 1)

Posted: Jan 28, 2008  7 comments  

Average Rating

Tags
IIS News Item
IIS7

We recently released IIS7's Web Deploy, which gives you the ability to migrate and synchronize IIS6 and IIS7 applications(download the x86 bits here and the x64 bits here).

Take a minute and think about the tasks that you do right now to move a web application from one server to another. There's all sorts of backing up, restoring, copying, praying, perhaps some cursing, and then validating on the machine. Consider, for example, the need to back up a web application before a migration, a change to the site, or by schedule. You can use the archive functionality in WebDeploy to accomplish this with a few simple lines of script.

Taking an archive or snapshot of a web site to restore or synchronize it later requires the following command on or against an IIS6.0 site:

msdeploy.exe -verb:sync -source:metakey=lm/w3svc/1 -dest:archivedir=c:\archive > wdeployarchive.log

(If you want to do the same action on an IIS 7.0 site, just replace metakey=lm/w3svc/1 with appHostConfig=”Default Web Site”.)

The > wdeployarchive.log argument makes sure that the results of the archive will be listed in the log file. This archive now works as a backup for the site, to sync to an IIS 6.0 server or to migrate to an IIS 7.0 server.

You can create an archive with most providers, excluding directory and file path providers. You can also re-sync the source provider, like the metakey, with the same archive or create new archives to achieve versioning. One note for the Technical Preview 1: you cannot add to an archive once it has been created.

Now let's say that you've (or someone has) trashed the web site on your server. You can restore the web site from your archive with this command for the IIS 6.0 site:

msdeploy.exe -verb:sync -source:archivedir=c:\archive -dest: metakey=lm/w3svc/1 > wdeployarchive.log

(Likewise,if you want to do the same action on an IIS 7.0 site, just replace metakey=lm/w3svc/1 with appHostConfig=”Default Web Site”.)

That means two lines of script for the archive and restoral of the Web site, with basic logging. If you want to learn more about how to use Web Deploy, check out these walk-throughs.

We are really excited about Web Deploy here in Redmond -- we're looking for your feedback, so try it out and let us know your thoughts in our forums on the Web Deployment team blog.

Comments

Very excited about this, it will be a nice addition to IIS 6.0

Jan 30 2008 by JB

Pingback from  Airline Travel » Application Center 2000 and IIS 7.0 Deployment

Feb 01 2008 by Airline Travel » Application Center 2000 and IIS 7.0 Deployment

News Microsoft Internet Security and Acceleration Server Internet Security and Acceleration (ISA) Server

Feb 01 2008 by Technical RollUp

so we meet again... When I do my IIS 7.0 presentations behind corporate firewalls, I tend to duck for

Feb 02 2008 by Allan's Best Week Ever

Sometime you can get lost on some of this I think too much way to go but it is good t o know still there are something that we are I can not understand

Feb 08 2008 by Jesse anderson

Thanks for the post Mai-lan!

Feb 26 2008 by faith_a

Pingback from  Web Mahs??lleri Ofisi  » Blog Arsiv   » iis 7.0′dan iis 7.0′a birden fazla siteyi ta????ma (iis 7.0 migration)

Feb 28 2009 by Web Mahs??lleri Ofisi » Blog Arsiv » iis 7.0′dan iis 7.0′a birden fazla siteyi ta????ma (iis 7.0 migration)

Submit a Comment

  • Plain text is accepted.
  • URLs starting with http:// are converted to links.