Automate a backup of web site on Web Deploy
I am using Microsoft Web Deploy 2.0 with IIS7 and Visual Studio 2010 "Publish" feature to publish to my server. Is there a way to automate the creation of a backup copy of the old site, either as a copy of the previous website or a zip file?
My hope is that I could roll back to a previous version of the site if need be.
Backup Utility UI
uses System.IO's Directory
and DirectoryInfo classes
to create folders
, delete folders
, and recursively copy folders from one location to the next
. Utilizes the DirectoryInfo class
to figure out how old a given folder was, in order to delete it.
codeproject
链接地址: http://www.djcxy.com/p/81684.html上一篇: 将root部署配置为默认值
下一篇: 在Web Deploy上自动备份网站