IIS 7 配置備份與還原

來源:互聯網
上載者:User

參考文章:http://blogs.iis.net/bills/arTechnorati Tags: iis,iis 7,backup,restore

chive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx

IIS服務所有檔案都在這個目錄下:\windows\system32\inetsrv\

檔案方式:拷貝或者覆蓋整個\windows\system32\inetsrv\config檔案夾以及子目錄就可以了

通過命令列方式:

to backup configuration, run the follow command:

> %windir%\system32\inetsrv\appcmd.exe add backup "My Backup Name"

to restore that backup, run this command:

> %windir%\system32\inetsrv\appcmd.exe restore backup "My Backup Name"

to delete a backup, run this command:

> %windir%\system32\inetsrv\appcmd.exe delete backup "My Backup Name"

list of backups and configuration history files, use the following command:

> %windir%\system32\inetsrv\appcmd.exe list backup

PS:從IIS7開始,每隔兩分鐘就會自動檢查ApplicationHost.config檔案並會自動備份最近十個版本到History目錄,這個策略可以在<system.applicationHost/configHistory> section修改。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.