Re: [Bacula-users] Windows registry restore possible?

2010-04-28 Thread Craig Ringer
On 29/04/10 01:58, Jari Fredriksson wrote:
> 
> Calm down, people. There is ERUNT.
> 
> http://www.larshederer.homepage.t-online.de/erunt/
> 
> I have not tried it with my current Win7, but at XP/2003 times it worked
> like charm. I took daily backup which Bacula could put to tape without
> any problems, and the backup contains an executable to restore each copy.

Ugh. They require UAC to be disabled. It's not like it's hard to insert
an executable manifest - I've even replaced manifests in 3rd party
software I don't have source to without significant hassle.

Win7 and win2k8 offer an excellent built-in image backup system that
makes proper use of VSS to get a consistent copy, so this seems a bit
obsolete. I guess for 2k8 server it'd be handy.

-- 
Craig Ringer

Tech-related writing: http://soapyfrogs.blogspot.com/

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows registry restore possible?

2010-04-28 Thread Jari Fredriksson

Calm down, people. There is ERUNT.

http://www.larshederer.homepage.t-online.de/erunt/

I have not tried it with my current Win7, but at XP/2003 times it worked
like charm. I took daily backup which Bacula could put to tape without
any problems, and the backup contains an executable to restore each copy.

Easy to use, safe bet.




signature.asc
Description: OpenPGP digital signature
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows registry restore possible?

2010-04-28 Thread James Harper
> > Is it possible to restore just the registry without restoring the
entire
> > backup?
> 
> To restore the hives you'd have to boot a different Windows install
with
> the Bacula agent running and the disks for the win2k3 server attached.
> You can't restore onto the 2k3 machine's registry hivesbecause they're
> read-only to applications while the OS is using them. You *may* be
able
> to restore them to an alternate location on the running server's
disks,
> then reboot into the recovery console and move them into place,
though.

Actually you'd just need to write a little app that made a call to
RegReplaceKey
(http://msdn.microsoft.com/en-us/library/ms724913%28VS.85%29.aspx).
Interestingly the documentation regarding VSS restore of the registry
says you should use MoveFileEx with a parameter of
MOVEFILE_DELAY_UNTIL_REBOOT to replace the registry hive with the
restored file, but if you do that your system blows up, so don't do that
:)

James

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows registry restore possible?

2010-04-28 Thread Craig Ringer
On 28/04/10 00:50, j...@mayhem.com wrote:
> I'm primarily a Linux user, and have been quite happy with Bacula on 
> Linux.  I also have some Windows servers which I'm stuck managing as 
> well, and I have Bacula configured on those.  One of those servers, a 
> Windows Server 2003 machine, recently managed to corrupt its SOFTWARE 
> registry to the point that it wouldn't boot. 
> 
> Is it possible to restore just the registry without restoring the entire 
> backup?

To restore the hives you'd have to boot a different Windows install with
the Bacula agent running and the disks for the win2k3 server attached.
You can't restore onto the 2k3 machine's registry hivesbecause they're
read-only to applications while the OS is using them. You *may* be able
to restore them to an alternate location on the running server's disks,
then reboot into the recovery console and move them into place, though.

Honestly, you're probably better off restoring your disk-image backup of
the server then updating the user data from your backups. That's usually
by far the easiest way to repair a dead Windows server.

( Please don't say "what disk-image backups?" You're running Windows
servers, so you must keep some kind of disk image backup of the OS
install... )


Looking at MSDN, it appears that Bacula may have to explicitly support
the VSS registry writer to do registry backups. See:

  http://msdn.microsoft.com/en-us/library/aa384595%28VS.85%29.aspx

OTOH, since the default paths appear to be under
\Windows\System32\config\, then with vss enabled it may be that the
hives can be automatically backed up.

If you've excluded that directory, you're almost certainly out of luck.
Check the registry key mentioned above to see if that's where the hives
are saved by VSS - if it's a different location you could be lucky.

Even if it is, restoring the hives could be ... interesting. See the
MSDN article referenced. Maybe it's easier with the recovery console.



Ugh. Reading this stuff, I'm beginning to feel sorry I recently bought a
Win2k8 server. Still, it was that or an Apple XServe to replace the
destroyed-by-water old XServe, and unlike Apple at least Microsoft fixes
bugs faster than they introduce them.


-- 
Craig Ringer

Tech-related writing: http://soapyfrogs.blogspot.com/

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows registry restore possible?

2010-04-27 Thread Thomas Mueller
Am Tue, 27 Apr 2010 12:50:30 -0400 schrieb jdb:

> I'm primarily a Linux user, and have been quite happy with Bacula on
> Linux.  I also have some Windows servers which I'm stuck managing as
> well, and I have Bacula configured on those.  One of those servers, a
> Windows Server 2003 machine, recently managed to corrupt its SOFTWARE
> registry to the point that it wouldn't boot.
> 
> Is it possible to restore just the registry without restoring the entire
> backup?  I have the VSS enabled in the Bacula config, and the email log
> from a recent backup makes it sound like the registry is being backed
> up:
> 
> 21-Apr 00:49 zz-fd JobId 37835: VSS Writer (BackupComplete):
> "Registry Writer", State: 0x1 (VSS_WS_STABLE)
> 
> If I could find a saved registry hive file from this backup, I'd be
> happy - I used the recovery console to restore an earlier hive file,
> which got the server back up, but that was a save point from a service
> pack install and is not very recent.
> 
> One problem may be that my default Windows exclude list which I picked
> up somewhere includes this line:  WildDir =
> "[A-Z]:/WINDOWS/system32/config" The registry hive files are stored in
> this directory on disk, but I'm hoping the VSS snapshot saves them
> elsewhere.

VSS does provide a consistent snapshot. IMHO the "VSS Writer" loglines 
just mean that the Service xyz was informed about a snapshot that will 
happen so that Service xyz can get into a consitent state on disk. 

this does not mean that anything is written an tape/volume.

- Thomas


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Windows registry restore possible?

2010-04-27 Thread jdb
I'm primarily a Linux user, and have been quite happy with Bacula on 
Linux.  I also have some Windows servers which I'm stuck managing as 
well, and I have Bacula configured on those.  One of those servers, a 
Windows Server 2003 machine, recently managed to corrupt its SOFTWARE 
registry to the point that it wouldn't boot. 

Is it possible to restore just the registry without restoring the entire 
backup?  I have the VSS enabled in the Bacula config, and the email log 
from a recent backup makes it sound like the registry is being backed up:

21-Apr 00:49 zz-fd JobId 37835: VSS Writer (BackupComplete): "Registry 
Writer", State: 0x1 (VSS_WS_STABLE)

If I could find a saved registry hive file from this backup, I'd be happy - I 
used the recovery console to restore an earlier hive file, which got the server 
back up, but that was a save point from a service pack install and is not very 
recent.  

One problem may be that my default Windows exclude list which I picked up 
somewhere includes this line:  WildDir = "[A-Z]:/WINDOWS/system32/config"
The registry hive files are stored in this directory on disk, but I'm hoping 
the VSS snapshot saves them elsewhere.

Searching the database for the filename "software" shows only the "repair" copy 
installed when Windows was installed:

$ find software
C:/WINDOWS/repair/software


Thanks in advance for any suggestions.



--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users