The database backup and recovery feature captures a snapshot for the database whenever the gateway is started. This snapshot is stored in a backup directory. By default, the gateway's root directory is set as the backup directory. The path of the backup directory can be changed using the command line switch /bkupdir-path.
When a new snapshot is written to the backup directory, the existing snapshot is overwritten. The backup directory always contains only the last snapshot.
When the database is corrupted, the recovery component replaces it with the last snapshot captured before the database corruption. This means that any modification done to the database after the snapshot capture is not reflected in the database.