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 import SSL certificate in Windows server?

To import SSL Certificate in Windows Server, firstly, you need to export the SSL certificate....

How to export an SSL certificate from Windows server?

Following are the steps to Export an SSL Certificate from the Windows Server: Open IIS...

Everything you should know about IIS Application Pools

1) What is an Application Pool? Application pool is a collection of one or more websites running...

How to generate CSR key and install SSL certificate on IIS 8?

SSL (Secure Sockets Layer) is an encryption technology, which creates an encrypted connection...

How to create an FTP account from IIS in Windows Server 2003?

This article will guide you on how to create an FTP account in Windows Server 2003 from IIS. For...

  • 0 Users Found This Useful

Was this answer helpful?