version 2004
BACKUP
Parameter | Type | Description | ||||
This command does not require any parameters |
Description
The BACKUP command starts the backup of the database using the current backup settings. No confirmation dialog is displayed; however, a progress bar appears on screen.
Backup settings are set in the application Preferences. They are also stored in the Backup.XML file located in the subfolder Preferences/Backup of the database.
The BACKUP command calls the On Backup Startup database method at the beginning of its execution and the On Backup Shutdown database method at the end of its execution.
Because of this mechanism, the command should not be called from one of these database methods.
4D Server: When called from a client machine, BACKUP is considered as a stored procedure; it is still executed on the server.
See Also
GET BACKUP INFORMATION, On Backup Startup Database Method, RESTORE.
System Variables or Sets
If the backup is performed correctly, the system variable OK is set to 1; otherwise, it is set to 0.
Error Handling
In case of any incidents, an error is generated which you can intercept by means of an error-handling method installed using the ON ERR CALL command.