I want to add a predeploy step in my build, package and deploy build step. All I want is to take a backup of site that I am going to publish.
C:\Program Files\IIS\Microsoft Web Deploy>msdeploy.exe -verb:sync -source:iisApp
For deployment I am using the following to do so.
/M /P:Configuration=%env.Configuration% /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=%env.TargetServer%/MsDeployAgentService /P:DeployiisAppPath=%env.IISPath% /P:MSDeployPublishMethod=RemoteAgent /P:CreatePackageOnPublish=True /P:Username=%env.username% /P:Password=%env.password%
Now I am confused how to do all this in one step. Is it possible to do them together or do I need a separate step. How to do it from teamcity as I can do it fine locally on machine using msdeploy.exe