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

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
thegiantsmurfAsked:
Who is Participating?
 
SembeeCommented:
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
 
LeeDerbyshireCommented:
I'd have thought that NET STOP MSExchangeIS (which you tried) was sufficient.  But what's wrong with NTBackup?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
thegiantsmurfAuthor Commented:
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
 
SembeeCommented:
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
 
thegiantsmurfAuthor Commented:
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
 
thegiantsmurfAuthor Commented:
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
 
LeeDerbyshireCommented:
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
 
thegiantsmurfAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.