Pre and post commands

pre_cmd

--pre_cmd=<command>

Pre data capture command. The parameter value should be the path to a batch file containing the required command along with its parameters.

Use this parameter to suspend operation of a database or application for a short period of time in order to take a snapshot of the data being backed up. While suspending the database, all running transactions are completed to prevent loss of data consistency. If this parameter is specified, you must specify the --post_cmd parameter.

Example:

--pre_cmd=c:\temp\pre_cmd.bat

where the contents of the batch file is

"net stop MSSQLSERVER"

post_cmd

--post_cmd=<command>

Post data capture command. The parameter value should be the path to a batch file containing the required command along with its parameters.

Use this parameter to resume operation of the database or application after the data capture is complete.

Example:

--post_cmd=c:\temp\post_cmd.bat

where the contents of the batch file is

"net start MSSQLSERVER"