cancel
Showing results for 
Search instead for 
Did you mean: 

Retention period for SAP Offline Redologs

former_member225699
Participant
0 Kudos

Dear All,

We have BRtools archive log backup scheduled for every 4hrs on our Production system. We trigger the same using netbackup and files are backup to the tape and deleted from the disk immediately.

Our requirement is, even after the backup completion we have to retain the archive logs onto the disk for 3days and then delete?

Could you please adivise how this can be achieved ?

Many Thanks !!!

Regards,

Srikanth G

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member206552
Active Contributor
0 Kudos

Hi

As suggested remove the delete flag from the back script,

The command below can be added into a script and added to crontab which will clear out files in the saparch directory older than 3 days

find /oracle/SID/saparch/SID* -mtime +3 -exec rm -rf {} +

Best Regards

Marius

Reagan
Advisor
Advisor
0 Kudos

We trigger the same using netbackup and files are backup to the tape and deleted from the disk immediately.

Remove the delete option from the brbackup script. That means archived logs are not deleted after they are copied to the tape.

Put a crontab job to delete the archived logs older than 3 days.

Regards

RB

Former Member
0 Kudos

Hi,

For your activity, I think you should create a conjob for your requirement.

using Brtools, you can have some more information using the following link.

http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/15/01df3a1fd91974e10000000a11402f/content.htm

Thanks and Regards,

Vimal