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

version 2004


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: 4th Dimension, 4D Server, 4D Client, 4D Runtime and databases merged with 4D Runtime Volume Licence.

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.


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