MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: shantanu on January 15, 2014, 04:20:09 PM

Title: How to take backup of IIS Configuration and list/restore/delete it back ?
Post by: shantanu on January 15, 2014, 04:20:09 PM
How take backup of IIS Configuration and list/restore/delete it.

1. Navigate to appcmd.exe directory as follows:

C:\>cd "c:\windows\system32\inetsrv"
Or
c:\>cd %systemroot%\system32\inetsrv\

2. Take IIS backup:

c:\Windows\System32\inetsrv>appcmd.exe add backup IIStest
BACKUP object "IIStest" added

3. List the available IIS backups:

c:\Windows\System32\inetsrv>appcmd.exe list backup
BACKUP "IIStest"
BACKUP "CFGHISTORY_0000000004"
BACKUP "CFGHISTORY_0000000005"
BACKUP "CFGHISTORY_0000000006"
BACKUP "CFGHISTORY_0000000007"
BACKUP "CFGHISTORY_0000000008"
BACKUP "CFGHISTORY_0000000009"
BACKUP "CFGHISTORY_0000000010"
BACKUP "CFGHISTORY_0000000011"
BACKUP "CFGHISTORY_0000000012"
BACKUP "CFGHISTORY_0000000013"

4. Restore the previous backups:

c:\Windows\System32\inetsrv>appcmd.exe restore backup IIStest
Restored configuration from backup "IIStest"

5. Delete the unwanted backups:

c:\Windows\System32\inetsrv>appcmd.exe delete backup IIStest
BACKUP object "IIStest" deleted