Solved

How can I unmount a filestore from the command line to assist backup

Posted on 2007-11-20
9
822 Views
Last Modified: 2010-04-21
I wish to make a nightly backup of an exchange 2000 system.
To keep things really simple avoiding NTbackup etc , I'd like to do the following:
Unmount the store.
Do a net stop on the relevant Exchange services.
Copy the store to offline location (eg USB Drive)
Do a net start on the relevant Exchange services.
Remount the store
As I understand it, there will be no log files since these will have been incorporated into the exchange database during the above processes (if there were - I could back those up as well).

I have seen scripts on the net suggesting you just need to do a net stop Msexchangeis, then backup the database, however when I tested a database bacckuped like this is was described as corrupt. Thus, I believe it may need to be dismounted first.

Any pointers would be gratefully received.

Thanks
Mark


I have found scripts
0
Comment
Question by:thegiantsmurf
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 28

Expert Comment

by:peakpeak
ID: 20320375
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 20320385
I'd have thought that NET STOP MSExchangeIS (which you tried) was sufficient.  But what's wrong with NTBackup?
0
 

Author Comment

by:thegiantsmurf
ID: 20320822
Knowing unfortunately next to nowt about vbs, I get the following error

Line 5
Char 1
A referral was returned from the server
Facility LDAP Provider
ID No. 8007202b
Microsoft CDO for exchange management

Code 8007202B
Source (null)

The Server is called Hestia, the domain syspal.co.uk, everything else looks OK to me.

In answer to why not use ntbackup, I want to be able to run offline tests on the file to check integrity. I have recently had to restore from a tape backup of exchange, which claimed not to have been shut down cleanly - I must have a clean copy of the exchange database as a backup, and it is much harder to test with ntbackup (I think).

Thanks
Mark

Set oDB = CreateObject("CDOEXM.MailboxStoreDB")
 
strDB = "CN=Mailbox Store (Hestia),CN=First Storage Group,CN=InformationStore,CN=Hestia,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=Exchange,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=syspal,DC=co.uk"
 
oDB.DataSource.Open strDB
oDB.Dismount()

Open in new window

0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 104

Expert Comment

by:Sembee
ID: 20320846
The thing is though - Exchange is not designed to backed up in the way that you are trying to do - it is also not designed to be stopped every night. During the night Exchange runs maintenance tasks on the server, if the database is stopped then those don't run. Furthermore the transaction logs are only flushed by an Exchange aware backup being carried out. A flat file backup is not an Exchange aware backup.

Simon.
0
 

Author Comment

by:thegiantsmurf
ID: 20320951
OK, but I would still like to get the file to test periodically, monthly maybe, from what you have said I need to create it immediately after an exchange aware backup - we currently use ultraback.
0
 
LVL 104

Accepted Solution

by:
Sembee earned 100 total points
ID: 20320973
You cannot really test Exchange databases in that way, due to their nature. It certainly is not something I have ever considered doing.

NTBACKUP doesn't back up the files, it backs up the streaming database. Therefore if you were doing a restore you would build a replacement server/store and then restore in to that database. I think you should go and read the Exchange operations guide including how backup and data recovery strategies are designed to work.

Simon.
0
 

Author Closing Comment

by:thegiantsmurf
ID: 31410131
The solution seems to be don't do it,
experience tells me that in a disaster situation we always have an exchange daytabase that needs to be rebuilt!
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 20321016
If you really need a copy of the files, I would do the Exchange-aware backup first (to flush as many .log files as possible), and then copy all the files in the mdbdata folder, not just the .edb ones.  Testing them in this way is quite an unusual thing to do, though, and I've no idea if you're even /supposed/ to be able to mount older copies without using isinteg .
0
 

Author Comment

by:thegiantsmurf
ID: 20321319
I just want to check the integrity - since I have has two occasions when restoring from backup, when the integrity was questioned, and I don't know if that was caused by a corrupt (but working) exchange dayabase - I want to know if what I am backing up has good integrity.

Thanks
Mark
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

821 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