Command Line Reference


The first argument for the msbp.exe command line utility must be one of the following commands:

backup
restore
restoreverifyonly
restoreheaderonly
restorefilelistonly
help
listplugins
helpplugin
version

Backup Command

A backup command backs up a database to a file. It has the following syntax:
msbp.exe backup <database plugin> <transform plugin>, n <storage plugin>

The first argument after the backup command must be a database plugin, most likely the "db" plugin, followed by any number of transform plugins, and the last argument must be a storage plugin, probably the "local" plugin.

Restore Command

A restore command restores a database from a file. The same set of transform plugins used during the backup should be entered but in the opposite order. For example, if the backup command was:

msbp.exe backup "db(databasemodel)" "bzip2()" "gzip()" "local(pathc:\model.bak.bz2.gz)"

The restore command should be:

msbp.exe restore "local(pathc:\model.bak.bz2.gz)" "gzip()" "bzip2()" "db(databasemodel)"

The syntax is:

msbp.exe restore <storage plugin> <transform plugin>, n <database plugin>

The first argument after the restore command must be a storage plugin, most likely the "local" plugin, followed by any number of transform plugins, and the last argument must be a database plugin, probably the "db" plugin.

Restoreverifyonly Command

msbp.exe restore <storage plugin> <transform plugin>, n
The first argument after the restore command must be a storage plugin, most likely the "local" plugin, followed by any number of transform plugins.

Restoreheaderonly Command

msbp.exe restoreheaderonly <storage plugin>
The first argument after the restore command must be a storage plugin. For example:

msbp.exe restoreheaderonly “local(path = c:\model.bak.gz.hfl)”

Restorefilelistonly Command

msbp.exe restorefilelistonly <storage plugin>
The first argument after the restore command must be a storage plugin. For example:

msbp.exe restorefilelistronly “local(path = c:\model.bak.gz.hfl)”

Help Command

The help command prints documentation to the command line.

ListPlugins Command

The ListPlugins command lists all the visible plugins to the msbp.exe utility. This is useful when first learning about the options available, or if you write your own plugin, it lists all the plugins that it can find. If it can't find your plugin, you will not be able to use it.

HelpPlugin Command

The HelpPlugin command prints the plugin's command line documentation. The syntax is:

msbp.exe helpplugin <plugin name>

Version Command

The Version command prints the version and architecture (x86 or x64) of the msbp.exe executable.

Last edited Oct 31, 2013 at 1:10 AM by SQLServerIO, version 2