开发者

solving msdeploy recursive skip on sync conflict

I'm trying to use a msdeploy sync command, skipping a given folder that are all around the destination directory.

Command I'm trying is:

msdeploy.exe -verb:sync -source:dirPath="C:\SomeFullSourcePath" 
             -dest:dirPath="C:\SomeFullDestPath" 
             -skip:objectName=dirPath,absolutePath=.*\\FolderToIgnoreAtAnyLevel

It works fine, except when trying to delete a folder, it goes like this:

  • folders are synced up to date
  • we want to delete a folder, so it is deleted from source
  • as pretty much any folder, in the destination it contains one of the folders that are skipped
  • sync is started, but it naturally fails / I've reprod it to the particular开发者_开发技巧 scenario, so I'm assuming what happens is the skip rule on these children folders prevents the parents from being deleted (error is "the directory is not empty")

Is there any simple way to workaround this issue?

Constraint: it must only delete the ignored folders If the parent folder is being deleted. The ignored folders can't be present at the source.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜