Backing Up and Restoring Registry Hives

You might at some time find it necessary to restore backed up versions of Registry hives. This might occur, for example, when a new computer is to replace an old one, when a disk controller or hard disk has gone bad, or when an electrical failure erased large parts of a disk. This section describes how to back up and restore Registry hives.

How this restoration is done depends on what hardware is available and what file system is in use. You can, of course, only restore what you have backed up.

Important

Make frequent and consistent backup sets of all important files, including system files.

Your regular backup routine should include using the Configuration Save command in Disk Administrator to maintain an up-to-date Emergency Repair disk for restoring the Windows NT system. For details, see Chapter 18, "Disk Administrator" in the Windows NT System Guide.

Backing Up Registry Hives

You might make a Registry hive backup in one of four ways:

Restoring Hives from Backup Files

If you have a good set of backup files, which you update regularly, you can restore Registry hives that are damaged or missing.

But you cannot use Registry Editor to fully restore hives, because active parts of the Registry require use of the ReplaceKey operation for restoration, which Registry Editor cannot perform.

To restore a damaged system, you must first restore the basic operating system installation. You might do this by using the Emergency Repair disk to restore your system to what it looked like just after installation, or simply run Windows NT Setup again. Such a restoration results in a system that starts the computer (which is good) but that lacks changes made since you first set it up (which isn't good). Most of those changes are recovered by copying files from backups by using the Windows NT Backup program for tape backups or by copying from disk backups.

However, you cannot merely copy the backups of Registry hive files, because those files are protected while Windows NT is running. So, after the system and all of the additional files such as device drivers are restored, you must restore the Registry. You might do this in one of the following ways, depending on which backup mechanism you used: