Hello,
I am trying to synchronize a web site with a new server, the content is already on the new server but in a different location from the source server and the IP is different. Here is the command that I run:
msdeploy -verb:sync -source:metakey=lm/w3svc/1039945931 -dest:metakey=lm/w3svc/1039945931,computername=X.X.X.X,userName=UserName,password=Password -disableLink:ContentExtension -replace:objectName=metaProperty,match="C:\\Inetpub\\Websites",replace="D:\T1" -replace:objectName=metaProperty,match="10.1.30.15",replace="10.1.30.11"
The problem that I am having is that the IP is not changing. If I specify it on a 2nd line it changes the IP, like:
msdeploy -verb:sync -dest:metakey=lm/w3svc/1039945931,computername=X.X.X.X,userName=UserName,password=Password -disableLink:ContentExtension -replace:objectName=metaProperty,match="10.1.30.15",replace="10.1.30.11"
But then the Path is reverted back to it's original path.
So my question is: Is there a way to pass multiple "-replace" commands on 1 line?
Thanks.