Things on DotNet, programming, and other useless stuff

How to backup IIS 6.0 Metabase

Have you ever had migrate a IIS web server before? It can be a real pain especially if the web server is hosting a lot of web sites. One simple way to migrate an older IIS web server to a new server is to back up the current web server's meta base and then use the restore feature of IIS to reimport the sites from the old server in to the new IIS server. It is important to note that the file structure for the home directory for each website must be the same on each server because all websites' home directories will be pointing to the previous location on new web server. An example of this would be if a website was pointing to C:\Inetpub\wwwroot\MyOldSite then on the new server IIS will be expecting the site to be setup at the same location.

In addition, it is also a good idea to periodically backup your IIS web server when regularly making changes. The backup can always be used to roll back any changes if for some reason the new changes applied to the a IIS web server cause issues.

Create bat file with the code below, and run periodicly to backup IIs 6.0.

@echo off
cd c:\Windows\system32\
cscript iisback.vbs /backup /b IISBACKUP /v NEXT_VERSION

Comments are closed