Skip to content

db4o Persistence

gregeva edited this page Dec 5, 2014 · 5 revisions

Documentation of the db4o Persistence Service


db4o is a pure Java object database, which uses a simple database file for persistence.


This persistence service supports writing information to the database as well as querying from it. It keeps all data that you ask it to persist, so the database is growing over time. Please take this into account when defining the items and the strategies for persistence with this service.

As it can happen that the (single) database file is corrupted if the runtime is shutdown ungracefully, this persistence service offers an automatic backup management, so that you can revert at least to an earlier version in case of data corruption.

Additionally, a commit interval can be configured for the database, so that you can optimize the write access to the file system.


For installation of this persistence package please follow the same steps as if you would install a binding.

Additionally, place a persistence file called db4o.persist in the ${openhab.home}/configuration/persistence folder.


This persistence service can be configured in the "Db4o Persistence Service" section in openhab.cfg. You can choose the backup interval, the number of backups to keep and the commit interval.

All item and event related configuration is done in the db4o.persist file. Aliases do not have any special meaning for the db4o persistence service.

feature overview


Setup intro

Linux and OS X





User Interfaces



(link to openHAB forum)



Application Integration



A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Binding configurations

Use case examples

Item definition examples

Sitemap definition examples

Collections of Rules on a single page

Single Rules


Syntax highlighting for external editors

Release Notes

Clone this wiki locally
You can’t perform that action at this time.