Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSDeploy: "Leave extra files on destination" from command line?

I use MSDeploy to publish things to different servers during CI. When I publish from Visual Studio 2010 I have a "Leave extra files on destination" option, but I can't seem to find a flag for this functionality when invoking MSDeploy from the command line.

Does anyone know how to do this??

like image 394
Brad Heller Avatar asked Oct 11 '10 20:10

Brad Heller


2 Answers

For msdeploy.exe you need to add -enableRule:DoNotDeleteRule to ensure content is not deleted. For more info on MSDeploy rules see http://technet.microsoft.com/en-us/library/dd568992(WS.10).aspx.

like image 60
Sayed Ibrahim Hashimi Avatar answered Nov 06 '22 09:11

Sayed Ibrahim Hashimi


If you want to choose which dirs need to be leaved, you can read http://blog.alanta.nl/2011/02/web-deploy-customizing-deployment.html

like image 20
Rail Avatar answered Nov 06 '22 08:11

Rail