cancel
Showing results for 
Search instead for 
Did you mean: 

Restoring the brbackup summary log with brrestore

benoit-schmid
Contributor
0 Kudos

Good morning,

I am doing restorations' tests on an empty/restore machine.

I have tested restorations with backint commands. It works find.

Now, I would like to test restorations with brrestore.

How can I restore the brbackup summary file with brrestore?

If I run the following command, it says that I need this file to restore it.

As w say in french, it is the snakes that bites its tail 🙂

brrestore -b last -m /oracle/XXX/18/sapbackup/backPRD.log -p /usr/local/sap/tsm-xxx-refresh/initRestoreXXX.sap
BR0401I BRRESTORE 7.40 (37)
BR0405I Start of file restore: rfbswnxg.rsb 2019-08-06 10:58:08
BR0484I BRRESTORE log file: /oracle/XXX/18/sapbackup/rfbswnxg.rsb
BR0252E Function fopen() failed for '/oracle/XXX/18/sapbackup/backXXX.log' at location last_back_get-2
BR0253E errno 2: No such file or directory
BR0121E Processing of log file /oracle/XXX/18/sapbackup/backXXX.log failed

BR0406I End of file restore: rfbswnxg.rsb 2019-08-06 10:58:08
BR0280I BRRESTORE time stamp: 2019-08-06 10:58:08
BR0404I BRRESTORE terminated with errors

Have a nice day.

Accepted Solutions (1)

Accepted Solutions (1)

shabeer
Contributor
0 Kudos

Follow this SAP note to restore brbackup summary log: https://launchpad.support.sap.com/#/notes/96848

benoit-schmid
Contributor

Good afternoon,

From the note you have provided, it is possible to restore this files with the -b2 options.

I have derived the following command that worked:

brrestore -p initRestoreXXX.sap -b2 "#NULL" -m /oracle/XXX/sapbackup/backXXX.log

Have a nice day.

Answers (1)

Answers (1)

shabeer
Contributor
0 Kudos

Do you have required permission and ownership for the folders oracle and sapbackup?

benoit-schmid
Contributor
0 Kudos

Good morning,

Yes this directory belongs to orasid.

If you look carefully in the error, you can see that it needs to open the summary log in order to do a restoration.

As it has not been restored yet, it is not available.

Regards,

Matt_Fraser
Active Contributor
0 Kudos

Hi Shabeer,

I converted your comment to an answer so as to better facilitate the back-and-forth discussion ensuing between you and Benoit.

Best regards,
Matt Fraser
SAP Community Moderator

Matt_Fraser
Active Contributor
0 Kudos

Good morning Benoit,

I converted your response to Shabeer into a comment under his response, as this is the easiest way to generate a notification to him that you replied. Otherwise, it becomes necessary to use "@-mentions" in the text of your response to generate the notification.

Best regards,
Matt Fraser
SAP Community Moderator

shabeer
Contributor
0 Kudos

Thank you Matt.