Guides / Your data
Backups and exports
Where your book is kept, the copies Ledgerbook makes on its own, and how to export, restore or move everything.
Where your book is kept
| Device | Where | Automatic copies |
|---|---|---|
| Linux | ~/.local/share/ledgerbook/data.json |
In the backups folder beside it: one at each start and one an hour while you work. The last 40 are kept |
| Android | The app’s private storage | One a day, inside the app. The last 40 are kept |
Your typing is saved as you go. On Linux, Settings shows the exact file and how many backups there are.
The Backup & export menu
| Choice | What you get |
|---|---|
| Balance sheet (CSV) | Balances, stock and assets for the State on screen, as a spreadsheet |
| All transactions (CSV) | Every entry in the State on screen |
| Export everything (.zip) | One file with the full backup and both spreadsheets for every State |
| Backup only (.json) | The full backup of every State, as one file |
| Restore or open… | Opens a backup, a team pack or changes file, or a driver’s file |
| Daily summary… | The daily summary |
| Driver app… | Setup files and imports for drivers |
| Team… | Team copies |
CSV files open in LibreOffice Calc or Excel.
Export everything
Click Backup & export, then Export everything (.zip). The file is named like ledgerbook-2026-11-17.zip and contains:
ledgerbook-backup.json: the full backup of every State- a folder for each State with
balance-sheet.csvandtransactions.csv README.txt, which says what the files are
On Android, the phone’s save screen opens so you can pick a folder.
Exports are not encrypted
A backup or export contains your whole book in plain form, including any Team passphrases. Keep it somewhere private.
Restore a backup
- Click Backup & export, then Restore or open….
- Pick a
.zipfrom Export everything or a.jsonbackup. - Ledgerbook shows what the file contains. Click Replace data to go ahead.
Restoring replaces everything, in every State. It doesn’t merge. On Android, the book as it was is kept as a daily copy first, so you can go back.
Go back to an automatic copy
On Linux: choose Restore or open… and browse to ~/.local/share/ledgerbook/backups. The .local folder is hidden, so press Ctrl+H in the file window to show it. The files are named by date and time.
On Android: open Settings, and under On this phone tap Restore a daily copy…. See Ledgerbook for Android.
Move your book
Export everything on one device and restore it on the other. This works between two computers, two phones, or a computer and a phone. See Move to a new device.
A sensible routine
- Let the automatic copies run. They cover slips of the finger.
- Once a week, Export everything to somewhere that isn’t the same device: a USB stick, another computer, or an encrypted vault.
- Export before you update, and before any big clean-up.