Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you have the following files in the folder <code>C:\Data\Personal\My Repo\MSDeploy\MultiSkip</code>. <img src="https://i.stack.imgur.com/0ChoV.png" alt="alt text"></p> <p>To sync source to dest the command would be:</p> <pre><code>msdeploy -verb:sync -source:contentPath="C:\Data\Personal\My Repo\MSDeploy\MultiSkip\Source" -dest:contentPath="C:\Data\Personal\My Repo\MSDeploy\MultiSkip\Dest" </code></pre> <p>The changes are show in figure below. <img src="https://i.stack.imgur.com/ThEX5.png" alt="alt text"></p> <p>With no skips there are 19 changes.</p> <p><strong>Skip 1 folder</strong></p> <p>Then the command to skip the sub03 directory would be:</p> <pre><code>msdeploy -verb:sync -source:contentPath="C:\Data\Personal\My Repo\MSDeploy\MultiSkip\Source" -dest:contentPath="C:\Data\Personal\My Repo\MSDeploy\MultiSkip\Dest" -skip:objectName=dirPath,absolutePath="sub03" </code></pre> <p>The result would be:</p> <p><img src="https://i.stack.imgur.com/p9VPT.png" alt="alt text"></p> <p>So there are 14 added files.</p> <p><strong>Skip 2 directories</strong></p> <p>To skip 2 directories the command would be</p> <pre><code>msdeploy -verb:sync -source:contentPath="C:\Data\Personal\My Repo\MSDeploy\MultiSkip\Source" -dest:contentPath="C:\Data\Personal\My Repo\MSDeploy\MultiSkip\Dest" -skip:objectName=dirPath,absolutePath="sub03" -skip:objectName=dirPath,absolutePath="sub02" </code></pre> <p>Then the result of that is <img src="https://i.stack.imgur.com/Nm3sD.png" alt="alt text"> There are only 9 changes here so we can see that multiple skips does work.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload