Home
»
Discussion Forums
»
Kaseya Backup -KBU (formerly BUDR)
»
Post Script Exchange 2007
Subscribe via RSS
Share this
Similar Posts
Running Scripts on Exchange 2007
by
LegacyPoster
on
Mar 9, 2009
Exchange 2007
by
lolly
on
Oct 15, 2010
Exchange 2007
by
LegacyPoster
on
Sep 16, 2009
Exchange 2007/2010 get mailbox sizes script
by
morristabush
on
Jun 6, 2011
Not Answered
Exchange 203/2007/2010 Mailbox Size Script
by
Elliot Tabush
on
Dec 20, 2011
View More
Details
4
Replies
0
Subscribers
Posted
over 13 years ago
Kaseya Backup -KBU (formerly BUDR)
Post Script Exchange 2007
Posted by
LegacyPoster
on
Mar 11, 2008 1:52 AM
This script will purge Exchange transaction Logs older than two days old. It is intended to be used as a "post" script after backup.
You will need forfiles.exe from the win2k resource kit.
You can download from here:
http://winhlp.com/node/180
I'm not sure why forfiles.exe isn't in the 2k3 resource kit, but nonetheless...
-------------------------
Script Name: Exch2007 Purge Trans Logs
Script Description: This script runs after Exchange 2007 Backup. It purges old Transaction logfiles greater than 2 days old.
IF True
THEN
Get Variable
Parameter 1 : 2
Parameter 2 : "D:\Exchange Server\First Storage Group\Transaction Logs"
Parameter 3 : LogPath
OS Type : 0
Get Variable
Parameter 1 : 10
Parameter 2 :
Parameter 3 : atemp
OS Type : 0
Write File
Parameter 1 : #atemp#\forfiles.exe
Parameter 2 : VSASharedFiles\BIN\2K3Rkit\forfiles.exe
OS Type : 0
Execute File
Parameter 1 : #atemp#\forfiles.exe
Parameter 2 : /p #LogPath# /m *.LOG /D -2 /c "cmd /c echo deleting @file >>>>#atemp#\purgelog.txt & del @file"
Parameter 3 : 1
OS Type : 0
Get File
Parameter 1 : #atemp#\purgelog.txt
Parameter 2 : Transaction_Log_Purge.txt
Parameter 3 : 1
OS Type : 0
Delete File
Parameter 1 : #atemp#\purgelog.txt
OS Type : 0
ELSE
Legacy Forum Name: Post Script Exchange 2007,
Legacy Posted By Username: myArch-man
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Mar 11, 2008 1:58 AM
Cuz it's part of 2k3 server... Duh..
Legacy Forum Name: BU-DR,
Legacy Posted By Username: myArch-man
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Mar 12, 2008 9:31 PM
Umm ... has Exchange said those logs have been rolled up?!
Legacy Forum Name: BU-DR,
Legacy Posted By Username: justin4dti
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Mar 13, 2008 1:02 PM
The checkpoint usually gets updated frequently enough that parsing out log files older than 2 days isn't a problem.
for recovering from the last checkpoint:
ESEUTIL /r enn /L[path to log files] /s[path to checkpoint file] /d[path to database file] /i
Legacy Forum Name: BU-DR,
Legacy Posted By Username: myArch-man
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Mar 13, 2009 1:17 AM
I haven't tried this myself yet but figured I would share with the class.
http://blog.crowe.co.nz/archive/2008/06/02/Windows-Server-2008--Exchange-Server-2007--NO-SUPPORTED.aspx
Legacy Forum Name: BU-DR,
Legacy Posted By Username: bent
You have posted to a forum that requires a moderator to approve posts before they are publicly available.