cancel
Showing results for 
Search instead for 
Did you mean: 

Exchange backup to be able to automatically delete logs after backup

nbuengr
Level 5
Partner Accredited

Hi,

I would like to confirm if Exchange deletes logs after backup. 

I saw some posts saying that NetBackup sends a message to Exchange that the logs can be deleted and Exchange does the job. 

Does truncating logs same with deleting logs?

Would it be possible to set a backup policy to delete MS Exchange log files after successful backup?

NBU is 7.6.0.1 and OS is Windows 2008 R2 Std.

Many thanks!

 

6 REPLIES 6

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
Yes. Exchange deletes/truncates the logs, not NBU. You can find confirmation in NBU for Exch manual.

sdo
Moderator
Moderator
Partner    VIP    Certified

FYI - full and diff backups will truncate the logs.   Cinc backups do not truncate the logs.  It's all in the manuals/guides.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
One more thing : Confirm that Exch backups complete with status 0. Status 1 is not considered successful.

Michal_Mikulik1
Moderator
Moderator
Partner    VIP    Accredited Certified

Hello,

agreed with previous posts, its Exchange API work to delete logs.

To be precise, it is log deletion in MS Exchange, not log truncation. There are many sequentially generated log files which are really Deleted after backups.

(In contrast, MS SQL Server performs Log Truncation, because there is one big permanent log file, and it's free space is managed internally)

Rgds

Michal

Mark_Solutions
Level 6
Partner Accredited Certified

Another thing of note in relation to this.....

If you backup a DAG using the simple DAG directive then it will spawn jobs for each database.

This means it has one parent job for lots of databases.

If any of those fail then the parent job will get a failure status (non zero) .. it is this that gets passed on to exchange .. so one troublesome database will cause all databases to not have their logs truncated.

It is a pain but well worth setting up a policy for each database individually to prevent this .. just make sure the Exchange team let you know if they add another dataabse so that you can create  a policy for it.

With lots of policies a single failure will result in only that one databases logs not being truncated and all others will be fine.

Hope this helps

Rajnikanth
Level 2

Hello,

    Please verify in event Viewever, you might get event ID : 2046, which Indicate that the request has been send to ESE. to truncate the logs.

    Actual Log Deletion is done by Exchange ESE with the help of VSS.

     Netbackup Only Invoke the Request after FULL and Incremental backups.

 

Hope this helps.