4D v16.3

On Backup Startup Database Method

Home

 
4D v16.3
On Backup Startup Database Method

On Backup Startup Database Method  


 

 

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 On Backup Startup Database Method allows verifying that the backup started. In this method, you should return a value that authorizes or refuses the backup in the $0 parameter:

  • If $0 = 0, the backup can be launched.
  • If $0 # 0, the backup is not authorized. The operation is cancelled and an error is returned. You can get the error using the GET BACKUP INFORMATION command.

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).



See also 

BACKUP
On Backup Shutdown Database Method

 
PROPERTIES 

Product: 4D
Theme: Backup

 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)