On Backup Shutdown Database Method

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2004


The On Backup Shutdown Database Method is called every time a database backup ends. The reasons for the stoppage of a backup can be the end of the copy, user interruption or an error.

This concerns all 4D environments: 4th Dimension, 4D Server, 4D Client, 4D Runtime and databases merged with 4D Runtime Volume License.

The On Backup Shutdown Database Method allows verifying that the backup was executed correctly. It receives, in the $1 parameter, a value representing the status of the backup once completed:

If the backup was executed correctly, $1 equals 0.

If the backup was interrupted by the user or following an error, $1 is different from 0. If the backup was stopped by the On Backup Startup database method ($0 # 0), $1 gets the value actually returned in the $0 parameter. This allows you to implement a customized error management system.

In any case, you can get information about the error using the GET BACKUP INFORMATION command.

Note: You must declare the $1 parameter (longint) in the database method:

   C_LONGINT($1)

See Also

BACKUP, On Backup Startup Database Method.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next