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.
Before you start
Osio nimeltä “Before you start”- 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.
Make a backup
Osio nimeltä “Make a backup”Take a copy at least after every month close and before every upgrade.
-
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.sqliteand the files next to it whose names start withfiscal.sqlite-), the attachments (artifacts/), the personal data (masterdata/pii.sqlite) and the expense claim drafts (intake/expense-claims/). -
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.
Restore a backup
Osio nimeltä “Restore a backup”-
Move the damaged home aside. Do not delete it, because it may still be useful.
-
Copy the backup into the home’s place.
-
Ask the agent to check the voucher chain.
Check the voucher chain.
-
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
aggountant voucher verifyaggountant period show --period 2026-03aggountant config showDone when
Osio nimeltä “Done when”aggountant voucher verify replies, for example:
chain ok — 42 vouchers, head #42If something goes wrong
Osio nimeltä “If something goes wrong”- If the chain check fails even after restoring, try an older copy.