4D v14.3On Backup Shutdown database method |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
On Backup Shutdown database method
|
$1 -> On Backup Shutdown database method | ||||||||
Parameter | Type | Description | ||||||
$1 | Longint |
![]() |
0 = backup executed correctly; other value = error, interrupted by user or code returned by On Backup Startup | |||||
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: 4D (all modes), 4D Server as well as 4D applications compiled and merged with 4D Volume Desktop.
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:
Note: You must declare the $1 parameter (longint) in the database method:
C_LONGINT($1)
It is important to note that in the case of an error during backup (disk full, support unavailable, etc.), the information related to the error is only displayed in the 4D Server monitor or in the MSC, and copied into the backup log. No alert dialog box appears and the error variable is not modified. If you want to be able to notify the administrator that an error has occurred, particularly in the context of an application running in client/server mode, you will need to use the On Backup Shutdown database method.
Product: 4D
Theme: Database Methods
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)