Reference: http://blogs.iis.net/bills/arTechnorati Tags: iis, iis 7, backup, restore
Chive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx
All IIS files are in this directory: \ windows \ system32 \ inetsrv \
File method: copy or overwrite the entire \ windows \ system32 \ inetsrv \ config folder and sub-directory.
Command line:
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: automatically checks ApplicationHost every two minutes starting from IIS7. the config file automatically backs up the last 10 versions to the History directory. modify applicationHost/configHistory> section.