Video Screencast Help

backup and restore of windows registry keys

Created: 06 May 2014 • Updated: 05 Jun 2014 | 12 comments
Dolly's picture
This issue has been solved. See solution.

I was ask this question ..is it possible to backup and restore windows registry keys with netbackup? I know for certain this should be part of systems state backup. But not sure it can be restore at file level. Please I need answers. Thank you.

Operating Systems:

Comments 12 CommentsJump to latest comment

Yasuhisa Ishikawa's picture

Unfortunately not possible with NetBackup. You can backup and restore system state, but it is not possible to backup and restore individual registry keys.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

SOLUTION
Mark_Solutions's picture

As stated above it is not possible directly to do this.

If you really needed the feature you could use the bpstart_notify.bat on a client to run:

regedit /e c:\registry_backup\registry.reg

This would then be captured in the backup and the file could be restored to be used for registry restores

Hope this helps

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

SOLUTION
Dolly's picture

Mark, can you please explain in details/step by step to achieve this as you have stated.

Also this line is confusing to me "regedit /e". You meant to write just  "regedit"?

Thank you

Mark_Solutions's picture

On the client you wish to backup the registry you need to create a file named bpstart_notify.bat in the \program files\veritas\netbackup\bin\ directory

This batch file will be run prior to a backup starting.

On the client create a folder named C:\registry_backup

If you just paste into the bpstart_notify.bat file the line below:

regedit /e c:\registry_backup\registry.reg

then when the backup runs the entire registry will be exported to a file named registry.reg in that folder.

This then gets backed up when the C drive is backed up.

This provides a full copy of the registry with each backup so that you can restore this file somewhere to the server. You can then either edit it to obtain the parts you need or import it into the existing registry

Do be careful though - if you double click the registry.reg file it will want to auto import it whereever you run it from!

This is just a simple workaround to provide you with a copy of the registry in an easy to use form

Hope this helps

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

Dolly's picture

Great. I'm going to test this out asap and will update you. Thank you all.

Mark_Solutions's picture

Just a thought .. you may need to set the NetBackup Client Service on that client to use an account with local admin rights to be able to run the command .. but try it without first as it will make life simpler

Of could you can export the file anywhere, it doesn't have to go to c:\registry_backup\ it could just go to c:\

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

Dolly's picture

Hi Mark, The command runs perfectly ok by running manually. However, its not been called by bpbkar32 prior backup. The file type i created  shows up as  DLL file type. Is this suppose to be application file type. If yes, how do i edit or create a windows application file type. Thank for your support.

 

ontherocks's picture

on which server and where have you created bpstart_notify.bat file ?

 

 

OTR

Mark_Solutions's picture

The file needs to be in the \netbackup\bin\ directory on the client itself

Make sure that it is bpstart_notify.bat and that you are not hiding file entensions

Also - as i mentioned earlier - you may need the NetBackup Client Service on the client running as a local administrator so that it has enough rights to run the command during the backup.

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

Dolly's picture

Ontherocks : bpstart was created on the client

Mark: yes, bpstart is in its right path. Also am login in as local admin account.

Please see attached bpstart_notify path, contents and my client information.

I just ran backup again, and this file was not called.

 

 

AttachmentSize
bpstart.docx 42.43 KB
Marianne's picture

In Explorer "Folder Options" select"View" tab. Uncheck the box for "Hide extensions for known file types".

Does bpstart_notify file extention have any else at the back?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Mark_Solutions's picture

The icon looks like notepad yet the file type says DLL - something wrong there - it should be shown as a Windows bath File

As Marianne says make sure you are not hiding known file extensions because i dont believe that is a .bat file

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.