How to backup registry in Windows

Registry contains information about software installed , Hardware and settings on your computer. Its is very helpful if backup of registry is taken from time to times as it makes recovery very easy in case of System crash.