How to create a Backup with appcmd in IIS

After you install IIS 7.0, you can backup your configuration by using the built-in command-line tool, AppCmd.exe. You can run AppCmd.exe to create a backup of your Web server before you have changed any configuration.

To create a backup using AppCmd.exe

  1. Open a command prompt as administrator and change to the %windir%\system32\inetsrv\ directory.
  2. At the command prompt, type appcmd add backup “FirstBackup” and then press Enter.

This creates a backup with the name “FirstBackup”.

At a later date, if you need to restore the backup, use appcmd restore backup “FirstBackup”.

For more information about AppCmd.exe, see https://www.iis.net/default.aspx?tabid=2&subtabid=25&i=954

Luke Simmonds

Blogger at www.systemtek.co.uk

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: