MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to take backup of IIS Configuration and list/restore/delete it back ?  (Read 4385 times)

0 Members and 1 Guest are viewing this topic.

Offline shantanu

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
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
« Last Edit: January 15, 2014, 10:27:55 PM by Administrator »

MilesWeb Hosting Forum