The Windows Registry editor comes with options to export and import Registry keys. It can be used to backup the Registry partially or fully. To do that, users need to open the Registry editor and click on File > Export while Computer is selected. This backs up all available Registry hives.
There are also other options to backup the Windows Registry, including the system tool rstrui.exe that ships with Windows.
Regbak is a third-party software program to backup the Registry. It comes with a few extras that may make it more interesting for some users, but all the basics are covered as well.
To simply backup the local Registry, you start the portable software, select a directory to store the backup or use the directory the software was started from, and click next to start the backup. That's it.
Advanced users can select the Registry hives that should be included in the backup. By default the system and current user hives get backed up. There is another option to include other available hives if they exist.
Advanced options are available that detail how older backups are handled during backups. It is possible to delete older backups based on age or number, or to overwrite existing backups automatically if they exist in the selected backup folder.
Regbak offers options to restore a Registry backup as well. This is done by clicking on the Backups entry in the interface, then Search to find the backup, and last but not least on Restore after selecting a backup to restore it to the system.
The Registry backup tool can be used from the command line in addition to the 32-bit and 64-bit graphical user interface versions.
- /reg:suo s=system hives u=user hives, o=all other hives
- /silent silent operation
- /overwrite overwrites previous backup files in the 'backup to' location
- /limitdays:d d = number of days of backups to keep, older backups will be deleted
- /limitcount:c keeps last 'c' number of backups
- translates to the system date when creating backup
Assuming "c:\windows\backup" is the backup location, valid commands are:
- regbak "c:\windows\backup" /reg:suo /silent
- regbak "c:\windows\backup\\
Regbak is available for download at the developer website. It is compatible with most 32-bit and 64-bit editions of the Windows operating system.
RegBak is an excellent program to back up and restore Windows Registry hives. It is more comfortable to use than the default Windows program as it comes with a graphical user interface. You can run it from the command line as well however, which is great if you want to use it in scripts for instance.