Amanda-Users

Re: cygwin & spaces in disklist directory

2003-06-11 08:21:37
Subject: Re: cygwin & spaces in disklist directory
From: JC Simonetti <simonetti AT echo DOT fr>
To: Paul Bijnens <paul.bijnens AT xplanation DOT com>
Date: Wed, 11 Jun 2003 14:17:45 +0200
Hi!
Concerning the backup of the Windows Hives, I've made a brainstorm using MS 
documentation (ouch my head). So this is the result.
The Windows Hives are composed of many files:
_ %windir%\system32\cache\* for the system hives
_ ~user\ntuser.dat for the user hive
The system hives are always loaded, the user hives are loaded if the user is 
logged.
When a hive is loaded, Windows puts a lock on the files corresponding to this 
hive, an exclusive read and write lock.

Thus there is only one way to backup the loaded hives (and only one to restore 
them): using 2 Windows programs available in the Windows Resource Kit:
_ regback.exe
_ regrest.exe
I cannot join them to this mail since they are not free, you will have to buy 
the Resource Kit to get them...

I made some months ago 2 batch scripts that backup the hives using these 
programs, check the 2 attached files. I thought I would be the only one to use 
them so the comments are a bit light and... in French, sorry...
I suggest you put the "save_registry.bat" script in a crontab (the Windows "AT" 
batch command) to regularly backup the registry.


You can also find some help at:
http://www.windowsitlibrary.com/Content/267/1.html


Good luck!



On Wed, 11 Jun 2003 09:58:54 +0200
Paul Bijnens <paul.bijnens AT xplanation DOT com> wrote:

> Andy Howell wrote:
> >    ln -s  '/cygdrive/c/Documents and Settings' /cygdrive/c/DocsAndSettings
> > 
> > did the trick. Recovery works fine as well. Now all I have to do is 
> > figure out some permission problems with some NTUSER.DAT and related 
> > files, and I'll be all set.
> 
> Not possible; windows keep these open files locked.  But if you find
> out how to get around that limitation, there are many people that want
> to know how you did it!
> 
> 
>      "Why use windows, when you can use the door?"
>               -- Anonymous
> 
> 
> -- 
> Paul Bijnens, Xplanation                            Tel  +32 16 397.511
> Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
> http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
> ***********************************************************************
> * I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
> * quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
> * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
> * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
> * kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
> * ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
> ***********************************************************************
> 

Attachment: restore_registry.bat
Description: application/msdos-program

Attachment: save_registry.bat
Description: application/msdos-program