Skip to content

Help wiki Beyond the window

Import and export

Bring hledger journals in and take the books out.

Kabacus’s accounting follows hledger’s. Make empty books, then import a journal (and what it includes) into them, once. Import previews unless you pass --save, and it refuses books that aren’t empty:

kabacus-cli new household.kabacus --currency USD
kabacus-cli import household.kabacus main.journal
kabacus-cli import household.kabacus main.journal --save

On a server the same is kabacus-server import <journal>. Afterwards the database is the books and the journal files are no longer read. Export writes an hledger journal any time:

kabacus-cli export household.kabacus -o household.journal

What export preserves

The current CLI exports rendered hledger journal text, not every historical revision or the original formatting. Keep a .kabacus copy for the database and history. The engine specification describes .kabacus ledger exchange as the intended format; consult the installed version’s help for available file-exchange operations.