The “CDB Backup” server action allows you to create manual or automatic snapshots of the CDB. These snapshots are created by using hard links (referring to the same INode) and therefore, this command is supported on file systems that support hard links.

The server action takes the following steps:

  • Create a checkpoint of the CDB
  • Create hard links to the existing CDB files
  • Trigger the creation of a new CDB file, to ensure the existing file(s) are not changed anymore
  • Update link “latest” pointing to the latest successful back

Usage

To use the server action:

  • Set the “Number of Backups” in Services > Embedded Database > Configuration to a number greater than zero. Please mind that a server restart is necessary after changing this value:
    screenshot
  • Enable the “automatic” and/or the manual server action in Modules > Administration > CDB Backup:
    screenshot

Directory Structure

The configured number of backups resides in:

work/cdb/assets/backup/

Each backup has its sub-directory named after the timestamp the backup was taken:

work/cdb/assets/backup/yyyyMMddHHmmssSSSS

A pointer is pointing to the latest backup:

work/cdb/assets/backup/latest

  • No labels