I am having a problem with the syntax to skip a local file from being included in a sync. The original error was:
C:\>msdeploy -verb:sync -source:metakey=lm/w3svc/228398852 -dest:package=d:\!WebStores\swaintoursapp
s.zip,encryptPassword=password -enableLink:apppool > d:\!WebStores\swaintoursapps.log
Error: An error was encountered when processing 'index.dat'.
Error: The error code was 0x80070020.
Error: The process cannot access 'c:\Documents and Settings\administrator.SWAINTOURS\Cookies\index.d
at' because it is being used by another process.
Error count: 1.
I added this to the config file in the rule section:
<rule name="SkipDatFile" type="Microsoft.Web.Deployment.DeploymentSkipRuleHandler" objectname="filepath" absolutepath="C:\Documents and Settings\administrator.SWAINTOURS\Local Settings\Application Data\Microsoft\Windows\usrClass.dat" isDefault="true" />
which returned:
C:\>msdeploy -verb:sync -source:metakey=lm/w3svc/228398852 -dest:package=d:\!web
stores\swaintoursapps.zip,encryptPassword=password -enableLink:apppool > d:\!web
stores\swaintoursapps.log
Error: Unexpected/unrecognized element ''.
C:\Program Files\IIS\Microsoft Web Deploy V2\msdeploy.exe.configSettings: (line
70, position 44)
Error count: 1.
Then tried to use skip on the command line:
C:\>msdeploy -verb:sync -source:metakey=lm/w3svc/228398852 -dest:package=d:\!web
stores\swaintoursapps.zip,encryptPassword=password -enableLink:apppool -skip:obj
ectname=filepath,absolutePath="C:\Documents and Settings\administrator.SWAINTOUR
S\Local Settings\Application Data\Microsoft\Windows\*" > d:\!webstores\swaintour
sapps.log
Error: The regular expression 'C:\Documents and Settings\administrator.SWAINTOUR
S\Local Settings\Application Data\Microsoft\Windows\*' is invalid.
Error: parsing "C:\Documents and Settings\administrator.SWAINTOURS\Local Setting
s\Application Data\Microsoft\Windows\*" - Unrecognized escape sequence \L.
Error count: 1.
Any help is appreciated. Thank You,
Den
Mar 14 2011 by
Dennis6622