Skip to content

feat: add "obnam gen-info" command

Lars Wirzenius requested to merge dbmeta into main

The "obnam gen-info" command shows information about the requested generation. For now, that's the database schema version and file count in the backup.

To achieve this, add a "meta" table to the generation's SQLite database, with information about the schema version. This is a necessary step towards adding more generation metadata later, such as the version of Obnam that created the generation, and the timestamps for when the backup run started and ended.

Future versions of Obnam will be able to look at the meta table, and the schema version, to backups made with older versions of Obnam.

Sponsored-by: author

Closes #56 (closed)

I will merge this on Monday, unless someone else has merged it earlier, or there are objections.

Merge request reports