Pre and post commands

pre_cmd

--pre_cmd=<command>

Pre data capture command. Specifies a command or a batch file that will suspend operation of a database or application for a short period of time. This period of time is required 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. You must specify a command or file to resume the database or application after the data capture is complete.

Example:

--pre_cmd="net stop MSSQLSERVER"

post_cmd

--post_cmd=<command>

Post data capture command. Specifies a command or a batch file that will resume operation of the database or application after the data capture is complete.

Example:

--post_cmd="net start MSSQLSERVER"