Managing Backups database in 4D
|
|
|
|
| Articles Reviews 4D Database | |||||||
| Written by Phil Harrison | |||||||
| Saturday, 13 January 2007 | |||||||
Page 1 of 5
Backing up the database consists of generating a copy of the databaseand all its necessary files at a given moment. This copy is placed in one or more backup file(s).
Performing a Backup Each backup is performed while taking into account the parameters set in the application Preferences. The Preferences can be used to define every aspect of the backup: Files to include in the backup (data / log, structure, user structure and attached files), These parameters are set at default values corresponding to standard use; changing these values is optional. Starting a Backup In 4th Dimension, a backup can be started in three ways: 4D Server: A backup can be started manually from 4D Client using a method that calls the BACKUP command. The command will be executed, in all cases, on the server.
Executing a Backup Once the backup is started, 4th Dimension displays a dialog box indicating the progress of the backup. Accessing the DatabaseDuring Backup During a backup, access to the database is restricted by 4D according to the context. With 4D Server, the database is only write locked; client machines can view data. If a client machine sends an add, remove or change request to the server, a window appears asking the user to wait until the end of the backup. Note: When the action waiting to be executed comes from a method and the user clicks the Cancel operation button, 4D Server returns error -9976 (This command cannot be executed because the database backup is in progress). Encountering ProblemsDuring a Backup It may happen that a backup is not executed properly. There may be several causes of a failed backup: user interruption, attached file not found, destination disk problems, incomplete transaction, etc. User interruption: The Stop button in the progress dialog box allows users to interrupt the backup at any time. In this case, the copying of elements is stopped and an error is generated. You can intercept this error in the On Backup Shutdown database method. Backup impossible (disk is full or write-protected, missing disk, disk failure, incomplete transaction, database not launched at time of scheduled automatic backup, etc.) |
|||||||
| Last Updated ( Thursday, 03 January 2008 ) | |||||||
| < Prev | Next > |
|---|







