Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

Exchange 2003 / 2007 Logs and Script

Is there a script I can use that will tell Exchange that the database has been backed up, and that it should commit and truncate the logs.

I know this happens automatically when you use Backup Software (Like Backup Exec with the Exchange Agent enabled), but we are testing some replication software for a project.  After the software replicates the Exchange Databases, we want to call a script that basically says the DB's are backed up and you can commit and truncate the logs now.

Thanks in advance,

Chris
0
tech911
Asked:
tech911
  • 4
  • 3
1 Solution
 
endital1097Commented:
exchange 2007
get-mailboxdatabase | ft name,*back*
0
 
endital1097Commented:
you could have this put into csv format using
get-mailboxdatabase | select name,*back* | export-csv c:\db-backups.csv
0
 
tech911Author Commented:
I'm sorry, I don't understand your comment.

We don't have an issue backing up the DB, the problem is that if you don't call some type of "Script" "Agent" etc... the log files will continue to pile up eventually consuming all your disk space unless they are committed and then truncated.

If you have a script that does that, it would be ideal.

Thank you for your attention and quick response.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
endital1097Commented:
i thought you were asking for a script to determine the backup of a database

the only way to truncate the logs for an exchnage database is to perform a backup (full and then incrementals will) or enable circular logging (not recommended)
0
 
tech911Author Commented:
When you say a "FULL BACKUP" what do you mean?  Please be as specific as possible on this.


How does Exchange "Know" you have actually done a FULL BACKUP?  Again, more detail on this is better if you have it.

Thanks again for your attention to this.
0
 
endital1097Commented:
it is part of a backup API that triggers the purge
http://support.microsoft.com/kb/822896

you could use the steps in the following article to determine which logs are not required to delete
http://support.microsoft.com/kb/240145
0
 
tech911Author Commented:
This really didn't solve our issue, but it did help point the way to getting it resolved.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now