Web Farm Framework Excluding Folders
Try this page
To exclude folders from provisioning
On the controller machine, open the ApplicationHost.config file. This is under the directory %windir%\System\inetsrv\config.
Under the applicationProvision element, add an entry to skip the directives as follows
<webFarms> <webFarm serverAutoStart="false" name="Farm" enabled="true" adminUserName="{0}\administrator" adminPassword=”pwd” primaryServer="demo-primary"> <server address="demo-primary" enabled="true" /> <server address="demo-secondary" enabled="true" /> <platformProvision syncPlatformFromPrimary="true" /> <applicationProvision syncWebServerFromPrimary="true"> <skipDirectives> <skip name="folder1" skipDirective="objectName=dirPath,absolutePath=.*folder1.*" /> </skipDirectives> </applicationProvision> </webFarm> </webFarms>When you save the changes, Web Farms Framework immediately picks up the changes from the configuration file and does application provisioning.
Verify that the secondary servers provisioned only Folder2, and Folder1 was excluded.
You can also skip binding as follows:
<skip name="folder1" skipDirective="attributes.protocol=https" />
Alternatively, you can sync a specific directory using the msdeploy command directly for each secondary server as follows:
C:\>cmd.exe /c ""%ProgramFiles%\IIS\Microsoft Web Deploy\msdeploy.exe" -verb:sync -source:contentPath="Default Web Site",computerName=demo-primary -dest:contentPath="Default Web Site" -skip:objectName=dirPath,absolutePath=.*folder1.*"