Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creating automatic backup when webdeploying

So what I want is that whenever i deploy from my dev-machine to the server-machine that an automatic backup of the current files for the site gets backuped.

I followed this guide for the configuration

http://www.iis.net/learn/publish/using-web-deploy/web-deploy-automatic-backups

At the root-level in IIS at the server this is configured

Configuration IIS

Using PowerShell on the server and calling

.\msdeploy.exe -verb:sync -source:backupManager -dest:backupManager=SiteName

will indeed create a backup of the site to the location D:\Websites\backups\SiteName_snapshots however no backup gets generated when I'm webdeploying from my dev-machine to the server.

I'm using Visual Studio 2012 for the publishing using a profile that is using an administrator account located at the targeted server.

According to this link:

Setting up automatic backups in Web Deploy tool

This feature seems broken in VS2010, is this still the case for VS2012?

like image 213
Johan Öbrink Avatar asked Nov 07 '25 07:11

Johan Öbrink


1 Answers

Be sure to set EnableMSDeployBackup to True in your *.pubxml file

   <Project>
    <PropertyGroup>
     ...
       <EnableMSDeployBackup>True</EnableMSDeployBackup>
     ...
    </PropertyGroup>
   </Project>
like image 166
mkdabrowski Avatar answered Nov 09 '25 21:11

mkdabrowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!