Performing Archival Logging
The Maintenance utility (GUI or BUTIL command line) provides a way to roll forward archival log files into the data files. See also the chapter Logging, Backup, and Restore.
The BUTIL ROLLFWD command recovers changes made to a data file between the time of the last backup and a system failure. If a system failure occurs, you can restore the backup copy of your data file and then use the BUTIL ROLLFWD command, which applies all changes stored in the archival log to your restored data files. Do not use this command unless you have restored data files from backup.
*Note: You cannot take advantage of the ROLLFWD command unless you both enable the MicroKernel’s Archival Logging Selected Files option and back up your files before a system failure occurs.
You can also use the ROLLFWD command to produce an output file of logged operations. The ROLLFWD command can produce the output file either before you roll changes forward or at the same time as the roll forward.
You can roll forward a single file, all data files on a volume, all data files on a drive, or a list of files, volumes, and/or drives.
Using the GUI
1
Access Maintenance from the operating system Start menu or Apps screen or from the Tools menu in PSQL Control Center.
2
Within the Maintenance window, click Data > Roll Forward The Roll Forward dialog box appears.
Figure 36 Roll Forward Dialog
3
4
By default, this file is not created. Select the Generate Dump File check box to generate a file. You can also specify the following options.
 
*Note: If the key buffer or the data buffer is not an input parameter for the particular Btrieve operation, nothing is written to the dump file.
5
Click Execute to generate the dump file and/or perform the roll forward operation. If the data is valid, the Roll Forward Status dialog box appears.
Figure 37 Roll Forward Status Dialog Box
As files are processed, they are added to the scrolling list box which displays the file name and the PSQL status code returned from the roll forward operation.
If an error occurs during processing, the Roll Forward Continue on Error dialog box appears. This dialog box allows you to continue without being prompted again, to continue and be prompted again, or to stop processing files.
Figure 38 Roll Forward Continue on Error Dialog Box
Using the Command Line
This section explains the syntax for the command line usage of Roll Forward.
BUTIL -ROLLFWD <sourceFile | drive | @listFile>
[</L[dumpFile] | /W[dumpFile]> [/T<dataLength>]
[/E<keyLength>] [/H] [/V] [/O<ownerList | owner>|*]]
[/A] [/UID<name> <PWD<word>> [DB<name>]]
/LdumpFile
/WdumpFile
/TdataLength
/EkeyLength
/UID<name>
/UIDuname
/PWD<word>
/PWDpword
Specifies the password for the user who is identified by uname. Pword must be supplied if uname is specified.
/DB<name>
/DBdbname
*Note: If the key buffer or the data buffer is not an input parameter for the particular Btrieve operation, nothing is written to the dump file.
Examples
Example A The following example recovers changes to the CLASS.MKD file from the default archival log and log location.
butil -rollfwd file_path\PSQL\Demodata\class.mkd
(For default locations of PSQL files, see Where are the PSQL files installed? in Getting Started With PSQL.)
Example B This example recovers changes and outputs them to all files on the d:\ volume with the following options:
butil -rollfwd d:\ /W /H /T32 /E4
Example C The following example does not perform roll forward but only outputs the changes to the files listed in files.txt with the following dump options:
butil -rollfwd d:\temp\files.txt /L\temp\files.lst /V /Oown123,own321