Sep 20
IIS Backup Server 2008
In Server 2008 the IIS history is located at C:\inetpub\history and contains all the backups for IIS7.
 
IIS7 automatically creates a new version of thisd backup every 2 mins if changes occur and retains the 10 most current versions of the ApplicationHost.config file. 

 

You can run a comand from the C:\Windows\System32\inetsrv\appcmd.exe with the switch backup CFGHISTORY_0....
  
Likewise you can also navigate to the C:\inetpub\history \CFGHISTORY_0... directory and copy the applicationHost.config file into C:\Windows\System32\inetsrv\config location replacing the current version.
 
If you wanted to copy the various CFGHISTORY_0.... files to a remote location you could follow these steps:
 
Create a file named Copy_IIS.bat and copy this syntax into the file.

This syntax will copy the IIS7 applicationHost.config file to a desired location on another backup medium:

copy "C:\Windows\System32\inetsrv\config\applicationHost.config" "\\UNC" 
 
    • You can run this as a scheduled task at your desired time and interval.

Comments

There are no comments for this post.

 ‭(Hidden)‬ Blog Tools