4D v14.3On Backup Startup database method |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
On Backup Startup database method
|
On Backup Startup database method -> $0 | ||||||||
Parameter | Type | Description | ||||||
$0 | Longint |
![]() |
0 = backup can be launched; value other than 0 = backup not authorized | |||||
The On Backup Startup database method is called every time a database backup is about to start (manual backup, scheduled automatic backup, or using the BACKUP command).
This concerns all 4D environments: 4D (all modes), 4D Server and databases merged with 4D Volume Desktop.
The GET BACKUP INFORMATION allows verifying that the backup started. In this method, you should return a value that authorizes or refuses the backup in the $0 parameter:
You can use this database method to verify backup execution conditions (user, date of the last backup, etc.).
Note: You must declare the $0 parameter (longint) in the database method:
C_LONGINT($0).
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)