Registry - Backup and Restore

Page 3 of 5 FirstFirst 12345 LastLast

  1. Posts : 960
    Windows 7 Ultimate SP1 - 64 Bit
       #20

    The Registry worked perfectly.
    Last edited by Brink; 30 Jan 2012 at 00:42. Reason: removed off topic issue
      My Computer


  2. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #21

    You're welcome. :)
    Last edited by Brink; 30 Jan 2012 at 00:42. Reason: removed off topic issue
      My Computer


  3. Posts : 418
    N/A
       #22

    Something the ERUNT readme file says:
    "Note: The "Export registry" function in Regedit is USELESS (!) for making a complete backup of the registry. Neither does it export the whole registry (for example, no information from the "SECURITY" hive is saved), nor can the exported file be used later to replace the current registry with the old one. Instead, if you re-import the file, it is merged with the current registry without deleting anything that has been added since the export, leaving you with an absolute mess of old and new entries."
      My Computer


  4. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #23

    Injust said:
    Something the ERUNT readme file says:
    "Note: The "Export registry" function in Regedit is USELESS (!) for making a complete backup of the registry. Neither does it export the whole registry (for example, no information from the "SECURITY" hive is saved), nor can the exported file be used later to replace the current registry with the old one. Instead, if you re-import the file, it is merged with the current registry without deleting anything that has been added since the export, leaving you with an absolute mess of old and new entries."
    Hello Injust,

    I agree with that for the complete registry. That's one of the main reasons why I recommended using System Restore for the complete registry instead.

    Of course, nothing can beat creating a system image. :)
      My Computer


  5. Posts : 418
    N/A
       #24

    Yup, but many members here have recommended me to export the registry instead of creating an image or using a third-part tool like ERUNT
      My Computer


  6. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #25

    Ooof, that's not good. Exporting parts of the registry is fine, but not the whole thing.
      My Computer


  7. Posts : 171
    Windows 7 Ultimate 64-bit SP1
       #26

    Hello,
    How would be the command to backup a sub-key like at command prompt to use in a batch file or other simple script, please?
      My Computer


  8. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #27

    Hello Neophile,

    You can type reg export /? in a command prompt and press Enter to get more details about it like below.



    For example, if you want to export the Software registry key below, ....
    HKEY_CURRENT_USER\Software
    .... you would type this into the command prompt below to export it with any filename.reg you like. The Y switch is to copy over if that filename already exists.
    REG Export "HKCU\Software" filename.reg /Y
    It will export the filename.reg file to wherever you have the command prompt open to. In my screenshot below, this would into the C:\Users\Brink folder.

    Registry - Backup and Restore-reg.jpg

    Hope this helps, :)
    Shawn
    Last edited by Brink; 21 Nov 2012 at 11:35. Reason: added quotes in command to be universal
      My Computer


  9. Posts : 171
    Windows 7 Ultimate 64-bit SP1
       #28

    Thank you Brink. I had already tried regedit /?, but this was wrong and just opened the registry editor. I had not found the correct help command. Now I tried, but it does not always work . It works when I export a full key, like
    reg export HKEY_CURRENT_USER trial.reg
    The operation completed successfully.
    But not when I try to export a deeper subkey, and get an error as
    reg export HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion trial.reg
    ERROR: Invalid syntax.
    Type "REG EXPORT /?" for usage.
    I wonder what I am missing or if it does not actually export subkeys as I understand from the results of "reg export /?".

    It would be very useful for many usages. An example is the Outlook profile for e-mail accounts settings, because it saves all accounts, passwords, etc. The usage is not limited to this, but with this I could make periodic auto-savings.
      My Computer


  10. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #29

    Since the key path has a space in it, you'll just need to have it wrapped in quotes like below instead. :)

    reg export "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion" trial.reg
      My Computer


 
Page 3 of 5 FirstFirst 12345 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:16.
Find Us