Wishlist 0 ¥0.00

IIS7保存配置文件及导入、导出、备份、还原

IIS6下想要保存配置,只需在图形界面下点右键保存即可,但windows 2008下的IIS7却没有这样的选项,

IIS7的配置文件有好几个,在c:\windows\system32\inetsrv\config文件夹下,如果需要手动去备份,只要复制一份config这个目录既可以。

同时,iis7也可通过appcmd命令来管理备份,如:
c:\windows\system32\inetsrv\AppCmd.exe LIST SITE /config /XML > iisappcmdexport.xml
这样,就可以把配置文件导出到C:\Users\Administrator\iisappcmdexport.xml (假设用户为Administrator)。

其它的命令如下:


1. 备份

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



2.还原

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



3.删除备份

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



4.查看备份

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



如果要批量搬移IIS上的数据到其他的服务器,需要导出所有应用池和网站:
1. 导出应用池

%windir%\system32\inetsrv\AppCmd.exe LIST APPPOOL /config /XML > poolappcmdexport.xml



2. 导出网站配置

%windir%\system32\inetsrv\AppCmd.exe LIST SITE /config /XML > iisappcmdexport.xml



3.导入应用池

%windir%\system32\inetsrv\AppCmd.exe ADD APPPOOL /IN < poolappcmdexport.xml



4. 导入网站配置

%windir%\system32\inetsrv\AppCmd.exe ADD SITE /IN < iisappcmdexport.xml

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.