Solved

IIS7 backup

Posted on 2010-09-22
5
730 Views
Last Modified: 2012-05-10
How to create an automated backup of IIS7 configuration AND files so in case the server crashes we can restore them on a different server. NOT interested in Clustering or Network Load Balancing at this time.
0
Comment
Question by:CompGenHosp
  • 3
5 Comments
 
LVL 30

Accepted Solution

by:
Brad Howe earned 333 total points
Comment Utility
Hi,
IIS7 stores all configuration in these snapshots in the %systemdrive%\inetpub\history folder by default.  
To restore, you can go to the \inetpub\history\cfgHistory_NNNNNNNNNN directory and copy the applicationHost.config file into it's proper place: \windows\sytem32\inetsrv\config or do it through CMD.

To restore that backup, run this command:
> %windir%\system32\inetsrv\appcmd.exe restore backup "CFG_History_0000000010"

http://blogs.iis.net/bills/archive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx
So i would suggest backing those up. If is does crash, you can restore IIS configurations from the last snapshot. It doesn't change/load website content - Only iis configuraiton so at least your sites/configs and permissions are intact.

* Content backup is a simple directory backup.

Cheers,
Hades666
0
 
LVL 1

Assisted Solution

by:tylermiranda
tylermiranda earned 167 total points
Comment Utility
i would create a 2 seperate ntbackup jobs.  one to backupup the iis configurations.  and another one to backup the inetpub folder.
0
 
LVL 30

Assisted Solution

by:Brad Howe
Brad Howe earned 333 total points
Comment Utility

Hi,
You could also use MSDEPLOY. put these commands into a BAT or VBS and make 1 job.  Download the tool and install on both hosts - http://www.iis.net/expand/webdeploy

msdeploy -verb:sync -source:appHostConfig="Default Web Site" -dest:archivedir=c:\mybackup

You can restore just by reversing source and dest. All the settings are maintained and stored in XML.

http://technet.microsoft.com/en-us/library/dd569040(WS.10).aspx
Cheers, Hades666
0
 

Author Closing Comment

by:CompGenHosp
Comment Utility
Partial solution was provided.
0
 
LVL 30

Expert Comment

by:Brad Howe
Comment Utility
could have asked for more detail if you need more.
Glad it works for you.
Hades666
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now