Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have many websites hosted on IIS6 and I want to migrate them to IIS7. It is enough if the basic configuration (folder, virtual folders inside, hostheaders, ) is migrated. a great part of the configuration is in web.config anyway. It is even okay if they're just created as "classic" mode applications.

I have tried the following things:

Msdeploy. This copies the whole directoried though, not good... Tried exporting the iis websites to xml... Found nothing to give them to iis7... Anybody got an idea?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I can answer my own question:

You can use MSDeploy. But you have to add this argument: -disableLink:Content

This will prevent copying all the files.

For example now:

msdeploy -verb:sync -disableLink:Content -source:metakey=lm/w3svc/1 -dest:package=c:\Site1.zip > WebDeployPackage.log
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.