Skip to content

Back up and restore your books

The most important part of your books, the sealed vouchers and archived attachments, is not in git, so the whole company home is backed up separately. A backup is an ordinary copy of the home directory, because aggountant has no backup or export command.

  • No aggountant command is running, because a copy of the voucher database taken in the middle of a write can be broken. Ask the agent to wait until the copy has been taken.
  • You have somewhere to put the copy other than where the home is, for example an external disk or encrypted cloud storage that only you use.

Take a copy at least after every month close and before every upgrade.

  1. Copy the whole home directory yourself or ask the agent:

    Back up the company home to the disk /Volumes/Backup.

    The copy includes the files excluded from git: the voucher database (fiscal.sqlite and the files next to it whose names start with fiscal.sqlite-), the attachments (artifacts/), the personal data (masterdata/pii.sqlite) and the expense claim drafts (intake/expense-claims/).

  2. Keep the copies for the Accounting Act’s retention period: at least 10 years for the financial statements and the books, and at least six years for the vouchers. The copy contains personal data, so keep it for your own use only.

  1. Move the damaged home aside. Do not delete it, because it may still be useful.

  2. Copy the backup into the home’s place.

  3. Ask the agent to check the voucher chain.

    Check the voucher chain.

  4. Check that everything is there. The agent first checks that the restored home is the one in use, then shows the state of the periods and the number of the last voucher. If the copy is older than the latest entries, record the missing transactions again from the receipts and bank statements. If a return was filed with an authority after the backup was taken, tell the agent before it sends anything again.

Commands the agent runs
Terminal window
aggountant voucher verify
aggountant period show --period 2026-03
aggountant config show

aggountant voucher verify replies, for example:

chain ok — 42 vouchers, head #42