Backing up and restoring messages
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
You can use the message backup and restore command-line utility, Mqbkup, provided with Message Queuing to protect message storage files, log files, transaction log files, and registry settings against computer failure.
Backing up and restoring messages
You must first create a folder to use for backup before using the utility. You run the utility from a command prompt by typing mqbkup.
The syntax of the utility is:
mqbkup {-bfolderpath | -rfolderpath | -y | -cresource name | -?}
where:
-bfolderpath backs up the files to the specified folder,
-rfolderpath restores the files from the specified folder,
-y don't prompt (Yes to all questions).
-c cluster resource; please specify the MSMQ resource name.
-? displays help for the utility.
Before restoring messages, you must close Control Panel and all Message Queuing applications.
Certificate and cryptographic key information is not backed up using this utility.
Warning
When you run mqbkup, run wbadmin to backup any public queue information.
After a restore operation, you must register a new user certificate. For information on how to register a certificate, see Register certificates for Message Queuing.
This utility stops and restarts the Message Queuing service.