JE Backup and Restore

Backing up a JE database consists of copying log files off to a safe storage location. You do not have to close your database or otherwise cease database operations when you do this. Sometimes the term snapshot is used to describe a particular kind of a backup. In JE there is no difference between a snapshot and a backup.

Restoring a JE database from a backup consists of closing your JE environment, copying archived log files back into your environment directory and then opening your JE environment again.

Note that whenever a JE environment is opened, JE runs normal recovery. This involves bringing your database into a consistent state given the changed data found in the database. If you are using transactions, then JE automatically runs checkpoints for you so as to limit the time required to run this recovery. In any case, running normal recovery is a routine operation. Running database restores is not.

For more information on JE backup and restores, and on checkpoints, see Backing up and Restoring Berkeley DB Java Edition Applications.