Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to take backup in IIS

Tags:

iis-7

backup

How do I take a backup of a site (and its settings) in IIS7 so that later if something goes wrong I can go back to my previous settings?

Updated:

I just want the settings, main website/sub- application, application pool etc. I can restore code from svn.

like image 351
coure2011 Avatar asked May 15 '11 06:05

coure2011


People also ask

Where is IIS backup stored?

NOTE: The default location of the backup is the %SystemRoot%\system32\inetsrv\MetaBack folder. If you want to save your backup file to another location, you can copy the file from this default location to another location. Keep a copy in the default location to allow for an easy restoration.

How do you backup your website configuration using AppCmd?

You can run AppCmd.exe to create a backup of your Web server before you have changed any configuration. Open a command prompt as administrator and change to the %windir%\system32\inetsrv\ directory. At the command prompt, type appcmd add backup "FirstBackup" and then press Enter.


1 Answers

You can do the following:

 %windir%\system32\inetsrv\appcmd.exe add backup "backup_name"

The above basically backs up %windir%\system32\inetsrv\config

You can also look into application config history: http://learn.iis.net/page.aspx/129/using-iis-70-configuration-history/

like image 109
manojlds Avatar answered Sep 30 '22 10:09

manojlds