Previous Next

Thread: Multiple REPLACE using msdeploy.exe command line

Last post 08-13-2008 3:42 AM by ksingla. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 08-06-2008, 10:46 AM

    • mmeklenschek
    • Not Ranked
    • Joined on 08-06-2008, 2:34 PM
    • Posts 1
    • mmeklenschek

    Multiple REPLACE using msdeploy.exe command line

    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.

  • 08-13-2008, 3:42 AM In reply to

    • ksingla
    • Top 25 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 410
    • ksingla

    Re: Multiple REPLACE using msdeploy.exe command line

    Hi,

    This is a known issue (multiple replace rules doesn't work when metakey provider is used) and will be fixed in next release. If you are open to syncing using archive, you can workaround by replacing IP while syncing to archive and then replacing path while syncing destination with archive.

    Thanks,
    Kj

Page 1 of 1 (2 items)
Page view counter