Offline defrag using ESEUTIL

Related to an earlier question, priv1.edb has reached it maximum size, I need to run an offline defrag tonight to cleanup my DB. I removed 2 very large mailboxes from the server that should have cleared up plenty of space.

Could some please give me the proper syntax of the eseutil to create a new defragmented DB to a different location while preserving my original DB.

I'd like to do this in tonight please!

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi ckelso,

I am sure you have read this:

The command you are wanting to run would be,

eseutil /d d:\exchsrvr\mdbdata\priv1.edb /bd:\exchsrvr\backup\priv2.ebd

This is assuming that d:\exchsrvr\mdbdata is the folder with your priv folder - Also, there is no space between /b and D:\exch... - that is the switch that makes a backup

Hope that helps,


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ckelsoAuthor Commented:
Excellent. Thank you very much.

One other question related to this.

Once the defrag has completed, while the new DB automatically be copied back to the original location or priv1.edb? Or will I have to do this manually?
Yes it will,

It backs it up to another area, and then works on the real DB

You can change this if you really want to - there is a switch for it in the link I provided

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.