HawkEye
HawkEye

Reputation: 205

How to skip Virtual Directories in Web Deploy Command line?

I use web deploy command line batch files to sync Staging and Production servers.

Production server has some virtual directories that are being shared between nodes (on Shared Drive).

I would like to skip virtual directory bindings from being synced ?

Can anyone help me with a switch that does it efficiently!

I appreciate your help.

EXAMPLE.

PLEASE HELP.

Upvotes: 0

Views: 1556

Answers (1)

Isantipov
Isantipov

Reputation: 20929

I think you can use the -skip parameters (although, I have never applied them to Virtul Directories as I usually sync specific web apps, not entire web servers). E.g.

-skip:objectname='filePath',absolutepath='logs\\.*\\someNameToExclude\.txt'

See the manual on TechNet:

-skip:skipAction=<action>,objectName=<objectName>,keyAttribute=<key>,absolutePath=<absolutePath>,attributes.<attributeName>=<attributeValue>,xPath=<xpathExpression>

Special Shortcuts

-skip:ApplicationPool=<applicationPoolName>
-skip:Directory=<directoryPath>
-skip:File=<filePath>
-skip:WebApplication=<webApplicationName>
-skip:WebSite=<webSitelName>

Upvotes: 1

Related Questions