Setting up automatic backups in Web Deploy tool

前端 未结 2 792
执笔经年
执笔经年 2021-02-13 18:43

I\'ve been struggling to setup automatic backup, but seems to have hit a wall. Following this document, and using Powershell, I\'ve enabled the backups (TurnOn-Backups -On $

2条回答
  •  -上瘾入骨i
    2021-02-13 19:21

    I managed to get VS2010 to deploy automatic backups, by stealing some ideas from this question: msdeploy (Web Deploy) failing with 401 auth issues

    First install Web Deploy v3.5 on your local computer - the one with VS2010 installed on it.

    Now edit your VS2010 environment config:

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config
    # or
    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config
    

    Find the node, and add the following just inside it:

    
        
        
    
    

    Save, and restart VS2010.

    You should now find you can use one click publishing in VS2010 to push to a server running Web Deploy v3, and if you've configured backups correctly on the server (see @Chiramisu's answer) then backups should be successfully created! Woop!

提交回复
热议问题