Skip to main content
Version: v20 R4 BETA

Restore Page

You can manually restore an archive of the current application using the Restore page. This page provides several options that can be used to control the restoration:

4D automatic recovery systems restore applications and include data log file when necessary.

The list found in the left part of the window displays any existing backups of the application. You can also click on the Browse... button found just under the area in order to open any other archive file from a different location. It is then added to the list of archives.

When you select a backup in this list, the right part of the window displays the information concerning this particular backup:

  • Path: Complete pathname of the selected backup file. Clicking the Show button opens the backup file in a system window.
  • Date and Time: Date and time of backup.
  • Content: Contents of the backup file. Each item in the list has a check box next to it which can be used to indicate whether or not you want to restore it. You can also use the Check All or Uncheck All buttons to set the list of items to be restored.
  • Destination folder of the restored files: Folder where the restored files will be placed. By default, 4D restores the files in a folder named “Archivename” (no extension) that is placed next to the Project folder. To change this location, click on [...] and specify the folder where you want the restored files to be placed.

The Restore button launches the manual restoration of the selected element(s).

Successive integration of several data log files

The Integrate one or more log file(s) after restore option allows you to integrate several data log files successively into an application. If, for example, you have 4 journal file archives (.4BL) corresponding to 4 backups, you can restore the first backup then integrate the journal (data log) archives one by one. This means that you can, for example, recover a data file even when the last backup files are missing.

When this option is checked, 4D displays the standard Open file dialog box after the restore, which can be used to select journal file to be integrated. The Open file dialog box is displayed again after each integration until it is cancelled.

Restoring an encrypted database

Keep in mind that the data encryption key (passphrase) may have been changed through several versions of backup files (.4BK), .journal files (.4BL) and the current application. Matching encryption keys must always be provided.

When restoring a backup and integrating the current log file in a encrypted database:

  • If you restore a backup using an old passphrase, this passphrase will be required at the next database startup.
  • After an encryption, when opening the encrypted data file, a backup is run and a new journal file is created. Thus, it is not possible to restore a .4BK file encrypted with one key and integrate .4BL files encrypted with another key.

The following sequence illustrates the principles of a multi-key backup/restore operation:

OperationGenerated filesComment
New data file
Add data (record # 1)
Backup database0000.4BL and 0001.4BK
Add data (record # 2)
Backup database0001.4BL and 0002.4BK
Add data (record # 3)
Encrypt data file with key10003.4BK file (encrypted with key1)Encryption saves original files (including journal) in folder "Replaced files (Encrypting) YYY-DD-MM HH-MM-SS". When opening the encrypted data file, a new journal is created and a backup is made to activate this journal
Add data (record #4)
Backup database0003.4BL and 0004.4BK files (encrypted with key1)We can restore 0003.4BK and integrate 0003.4BL
Add data (record # 5)
Backup database0004.4BL and 0005.4BK files (encrypted with key1)We can restore 0003.4BK and integrate 0003.4BL + 0004.4BL. We can restore 0004.4BK and integrate 0004.4BL
Add data (record # 6)
Encrypt data file with key20006.4BK file (encrypted with key2)Encryption saves original files (including journal) in folder "Replaced files (Encrypting) YYY-DD-MM HH-MM-SS". When opening the encrypted data file, a new journal is created and a backup is made to activate this journal
Add data (record # 7)
Backup database0006.4BL and 0007.4BK files (encrypted with key2)We can restore 0006.4BK and integrate 0006.4BL
Add data (record # 8)
Backup database0007.4BL and 0008.4BK files (encrypted with key2)We can restore 0006.4BK and integrate 0006.4BL + 0007.4BL. We can restore 0007.4BK and integrate 0007.4BL

When restoring a backup and integrating one or several .4BL files, the restored .4BK and .4BL files must have the same encryption key. During the integration process, if no valid encryption key is found in the 4D keychain when the .4BL file is integrated, an error is generated.

If you have stored successive data keys on the same external device, restoring a backup and integrating log files will automatically find the matching key if the device is connected.