|
Continuous Operations provides the ability to backup data files while database applications are running and users are connected. However, in the event of a hard drive failure, if you use Continuous Operations to make backups, you will lose all changes to your data since the last backup. You cannot use Archival Logging and the Maintenance utility Roll Forward command to restore changes to your data files that occurred after the last backup.
Pervasive.SQL provides a backup command, BUTIL, for Continuous Operations.
This section is divided into the following sub-topics:
This section provides detailed information on the commands: STARTBU and ENDBU.
Note
The temporary delta files created by Continuous Operations mode have the same name as the corresponding data files but use the extension ".^^^" instead. Therefore, do not create multiple data files with the same names but different extensions. For example, do not use a naming scheme such as INVOICE.HDR and INVOICE.DET for your data files. If you do, the MicroKernel returns status 85 and no files will be put in Continuous Operations.
Continuous operation mode does not significantly affect MicroKernel performance; however, using a server to back up files can affect performance.
To protect against data loss using Continuous Operation
This section provides detailed information on backing up a database using the following BUTIL commands: STARTBU and ENDBU.
The BUTIL -STARTBU command places a file or set of files into continuous operation for backup purposes.
BUTIL -STARTBU <sourceFile | @listFile> [/S]
Note
This command begins continuous operation only on the files you specify. You cannot use wildcard characters with the STARTBU command.
Example A The first example starts continuous operation on the COURSE.MKD file.
For Windows Server:
Example B The following example starts continuous operation on all files listed in the STARTLST.FIL file.
The STARTLST.FIL file might consist of the following entries:
Example A The first example starts continuous operation on the COURSE.MKD file.
Example B The following example starts continuous operation on all files listed in the STARTLST.FIL file.
The STARTLST.FIL file might consist of the following entries:
The ENDBU command ends continuous operation on a data file or set of data files previously defined for backup. Issue this command after using the STARTBU command to begin continuous operation and after performing your backup.
BUTIL -ENDBU </A | sourceFile | @listFile> [/S]
|
/A
|
If you specify
/A, the utility stops continuous operation on all data files initialized by BUTIL -STARTBU and currently running in continuous operation mode.
|
|
sourceFile
|
The fully qualified name of the data file (including the drive specification for Windows 32-bit platforms and volume specification for NetWare) for which to end continuous operation.
This fully qualified name must reside on the same machine as the one from which you are running butil. You cannot used mapped drives with the endbu command.
|
|
@listFile
|
The name of a text file containing a list of data files for which to end continuous operation. The text file must contain the fully qualified file name for each data file, and you must separate these file names with a carriage return/line feed. (Although the utility accepts a blank space separator as well, future versions of Pervasive.SQL may accept blank characters in file names. For compatibility with future versions of Pervasive.SQL, use the carriage return/line feed separator.)Typically, this list of data files is the same as the list used with the STARTBU command.
|
|
/S (NetWare only)
|
By default, the Maintenance utility stops at each full screen of output and waits for a keystroke before continuing. With the /S option, the utility continuously scrolls output on the screen. You cannot use /S on the command line if you specify a command file, but you can specify /S with a command inside a command file.
|
The following example ends continuous operation on the COURSE.MKD file.
However, you can also just enter butil -endbu course.mkd instead of the full path if your current directory is f:\demodata.
The following example ends continuous operation on the COURSE.MKD file.
If you are using Continuous Operations for your backup strategy, then you have no recovery log that can be used to recover changes since your last backup. All database changes since your last backup are lost, with the possible exception of any transactions stored in the transaction log. Any such transactions are automatically rolled forward by the database engine when it starts up.
To restore data and normal database operations
Perform the maintenance required to make the failed computer operational again.
Any database operations performed since the last backup must be performed over again.
|
Chapter contents
Prev topic: Using Archival Logging
|