Solved

Exchange 2003 / 2007 Logs and Script

Posted on 2010-09-16
7
388 Views
Last Modified: 2013-11-10
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
Comment
Question by:tech911
  • 4
  • 3
7 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33691563
exchange 2007
get-mailboxdatabase | ft name,*back*
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33691691
you could have this put into csv format using
get-mailboxdatabase | select name,*back* | export-csv c:\db-backups.csv
0
 
LVL 3

Author Comment

by:tech911
ID: 33691789
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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 32

Expert Comment

by:endital1097
ID: 33691885
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
 
LVL 3

Author Comment

by:tech911
ID: 33691994
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
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33692043
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
 
LVL 3

Author Closing Comment

by:tech911
ID: 33704079
This really didn't solve our issue, but it did help point the way to getting it resolved.
0

Featured Post

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now