Monday, August 12, 2013

How to Backup/Restore Internet Information Services using GUI or Command line for IIS 6 and IIS 7 ?

IS 6.0


The First method is by using GUI Mode

1) Open Internet Information services (IIS) Manager

IIS Console




















2) Right Click the server name and click on All Tasks and select Backup/RestoreConfiguration


IIS Backup All Task

















3) Click on Create Backup option to take backup
Create IIS Backup













4) Type the backup name in the Configuration Backup Name
Create IIS Backup using GUI













5) If you want to Encrypt/ Password Protect the backup file, Select the option: Encrypt backup using Password and provide password of your choice
Note: Remember the password to be used during restore.
Protect IIS backup File













6) Click on OK and you are done

7) While restoring the backup just select the Backup Name you want to restore and click on Restore option

8) The same way if you want to delete any existing backup, use Delete option
Add Backup Name













The second method to take IIS 6 backup is by using the command Line

1) Open a command prompt
2) Run the command as you see in the below example
Example command : Cscript.exe iisback.vbs /s /u Administrator /p  /backup /b NewBackupName

IIS6 backup command

Refer Microsoft official Document:  http://support.microsoft.com/kb/324277


IIS 7



First Method Using GUI

Unfortunately, by default GUI mode is not enable, to enable it follow the instructions in the below article


Second Method Using command
To backup IIS configuration:
%windir%\system32\inetsrv\appcmd.exe add backup "Backup-Name"

To restore that backup:
%windir%\system32\inetsrv\appcmd.exe restore backup "Backup-Name"

To delete a backup:
%windir%\system32\inetsrv\appcmd.exe delete backup “Backup-Name"

IIS 7  Backup command

IIS 7 Restore

Once the backup command is successful, the files can be verified in the default location C:\windows\system32\intersrv\backup\Backup-Name

IIS 7 backup/restore








Refer Microsoft official Document : http://technet.microsoft.com/en-us/library/dd819406.aspx 

No comments:

Post a Comment