How to backup/restore IIS7 configuration file from command prompt?

Backup:

  • Login to your server by using administrative rights.
  • Open command prompt using start → run → and type cmd.
  • Navigate to below mentioned path:
  • %SYSTEMROOT%\System32\inetsrv\
  • Fire below mentioned command to save configuration backup:
  • appcmd.exe add backup "My Backup Name"

Go to inetsrv Path
 

View available Backups:

  • Login to your server by using administrative rights.
  • Open command prompt using start → run → and type cmd.
  • Navigate to below mentioned path:
  • %SYSTEMROOT%\System32\inetsrv\
  • Fire below mentioned command to view the list of available backups:
  • appcmd.exe list backup

View Available Backups
 

Restore:

  • Login to your server by using administrative rights.
  • Open command prompt using start → run → and
  • %SYSTEMROOT%\System32\inetsrv\
  • type cmd.
  • Navigate to below mentioned path:
  • Fire below mentioned command to restore the backup:
  • appcmd.exe restore backup "My Backup Name"

Go to inetsrv Path
 

Delete Backup:

  • Login to your server by using administrative rights.
  • Open command prompt using start → run → and type cmd.
  • Navigate to below mentioned path:
  • %SYSTEMROOT%\System32\inetsrv\
  • Fire below mentioned command to remove the backup:
  • appcmd.exe delete backup "My Backup Name"

Delete a Backup

Notes:
  • You can also assign any name instead of "My Backup Name".
  • This will only work for the clients who has admin access of VPS/Dedicated Server.

Related Articles

How to Block an IP address From Visiting My Websites Through IIS?

You can restrict the access of any particular website for any specific IP address. You can add an...

How to resolve configuration error of 'targetFramework'?

You may face the below error while running on your ASP website which targeting to the application...

How to Add Website in IIS?

This article will assist you to add new website in IIS. If you have opted for the controlpanel,...

Fix :: Operation must use an updateable query." for ASP pages

Problem Statement Operation must use an updateable query." for ASP pages Cause There might be...

How to change application pool of a website from IIS?

While you add a website from IIS Manager, you’ll get an option to select the application pool. In...

  • 0 Users Found This Useful

Was this answer helpful?