Creating a special preset (Windows Registry backup demo)

Top  Previous  Next

ocblogo

Creating a special preset (Windows Registry backup demo)

You can configure a preset that will back up a dynamically created content (i.e. the files will be created right before packing). To implement this possibiliy, OCB can run an external program and wain until the program finishes its work. It is also possible to run a batch of executions (.cmd or .bat). The following example shows how to make a fresh version of Registry file and back it up immediately.

Some malicious programs can spoil Windows registry or its parts to make you have some problems with your system. In worst cases you'll have to reinstall Windows. This is not good, so it's better to have a copy of your registry and it's even better to have several daily copies of the registry in case you don't notice a problem just after the registry is changed. This is just a sketch that shows how to create a preset to keep backup copies of the registry for the last seven days (OCB 2.12 pack already has this demo preset preinstalled).

1.Create a new preset.

Preset name: "Windows Registry".

Archive name: "registry". Run program BEFORE preset section:

Activate: check.

Type in the first line "regedit.exe".

Type in the second line "/ea c:\windows\temp\regbkup.reg".

You should specify an existing temp folder in the previous line.

Winrar switches section:

Compression: Best.

Delete files after archiving: check.

Recurse subfolders: uncheck.

2.Go to Actions tab. Set up everything as you need, configure the Cleaner to have 7 last copies of the archive.
3.Go to File lists tab and click "Edit include list in Notepad", add to the first line:

c:\windows\temp\regbkup.reg

Press Ctrl-S, close Notepad.

4.Press OK - the preset is ready to use.
5.You can add this preset to the scheduler to execute it every day automatically. You will always have last 7 copies of the registry.

To restore your old registry simply unpack regbkup.reg and doubleclick it. WARNING: by restoring your old registry you rewrite all newer values of registry keys, thus some system and software configuration may become outdated. Do it only when it's clear that the registry was broken and the computer doesn't work properly.

 

SEE ALSO:

What files do I need to back up and how often?

What is a preset? Creating a new preset.

How do I set up a simple preset to test OCB?

Index.