Skip to content

Upgrading and Backups

Before you upgrade or move Actual Bench, back up the volume containing ACTUAL_BENCH_DB_PATH. The default location is /data. This database holds Actual Bench sessions, flows, saved queries, exchange rates, and optional encrypted credentials.

DataWhereBack up?
Actual budget dataYour Actual ServerYes - by Actual, or by Actual Bench’s own Backups
Actual Bench metadata/data volume (SQLite)Yes
Credential vault key/data/secrets/vault.key, or ACTUAL_BENCH_VAULT_KEY in your secret managerYes - without it stored credentials cannot be opened
ConfigurationYour Compose file / environmentYes
Actual Bench passwordKnown by the user, or ACTUAL_BENCH_PASSWORDYes, separately - the database cannot recover it
Browser session stateThe browserNo (transient; sign in again after a restart)

That database holds no budget data and no plaintext credentials. It can hold the two encrypted opt-ins: remembered-server secrets, and unattended-sync credentials.

  1. Read the release notes for the target version.
  2. Record your current version (shown in the sidebar footer).
  3. Back up /data (see Backup).
  4. Back up your Compose file and environment configuration.
  5. Make sure the vault key is kept: /data/secrets/vault.key is part of the /data backup, or keep your ACTUAL_BENCH_VAULT_KEY value. Upgrading from a version that used SYNC_VAULT_KEY? Keep it set; it still works, and renaming it to ACTUAL_BENCH_VAULT_KEY is all that’s needed.
  6. Confirm you know the Actual Bench password: every upgrade restarts Bench, which signs everyone out.
  7. Upgrade to a pinned :<version>, not a moving tag. Then you know what you got.

Docker Compose:

Terminal window
docker compose pull
docker compose up -d

Docker CLI:

Terminal window
docker pull xrous/actual-bench:1.2.4
docker stop actual-bench && docker rm actual-bench
docker run -d \
--name actual-bench \
--restart unless-stopped \
-p 3000:3000 \
-v actual-bench-data:/data \
xrous/actual-bench:1.2.4

Name the exact version. latest today and latest tomorrow are not the same image.

Change the tag to latest or a pinned version and recreate the container. Keep the same metadata volume and everything comes with you.

  • Migrations run on boot, automatically, when a newer image meets an existing database.
  • Check the result on App Health: the Schema row shows the current and latest version, and Writable should be Yes.
  • If a migration fails, stop. Do not keep writing to a half-migrated database. Restore the backup you took and work out what happened before trying again.

An upgrade from a version that still had Sync Repayments moves Loans to loan tracking (database schema version 60). Take the /data backup first: this migration cannot be undone.

  • The old posting history, matching rules, backtests and transaction links are removed.
  • A repayment rule that named both a source account and an exact payee becomes a payment rule on the loan. A rule that also limited the amount is not carried over, because a payment rule has no amount condition and would match more payments than the old rule did.
  • Extra payments that were recorded from Actual as events are no longer events. They are read from the Loan Ledger as Extra principal.
  • Loans keep their terms. Open each loan, check Link to Actual, and use Refresh on Repayments.
  1. The app loads and shows the new version in the sidebar footer.
  2. App Health: Writable = Yes, Schema current, Persistence as expected.
  3. Your sync flows and run history are present.
  4. Remembered servers are still listed. The vault will be locked - that is correct, someone has to unlock it.
  5. If you use unattended sync, its scheduler section on App Health looks healthy.
  • Rolling the image back to the previous :<version> is easy.
  • Rolling the database back is not. A newer version may have migrated the schema, and the old image may refuse to read it. That is what the pre-upgrade /data backup is for.
  • After a failed migration, restore. Do not guess.

Let Bench do it. A backup rule set to copy Bench settings snapshots this database on a schedule, opens the copy to check it reads, and puts it wherever you point it. It uses SQLite’s VACUUM INTO, so the copy is safe to take while Bench is running and arrives as a single file with no -wal to reunite.

By hand: back up the /data volume, or at minimum the SQLite file at ACTUAL_BENCH_DB_PATH.

Back up your Compose file and environment too.

  1. Stop the container.
  2. Restore the metadata files to the /data volume with correct ownership/permissions.
  3. Restore your environment configuration.
  4. Restore secrets/vault.key with it, or provide the same ACTUAL_BENCH_VAULT_KEY as before.
  5. Start the container and verify App Health.
  6. Lost the vault key? The stored credentials cannot be decrypted. Reset vault in App Health, then enrol your budgets again.
  1. Back up /data and your configuration on the old host.
  2. Restore /data on the new host with correct permissions.
  3. Recreate the container with the same image :<version> and environment.
  4. Bring the vault key: secrets/vault.key comes with /data, or set the same ACTUAL_BENCH_VAULT_KEY.
  5. Verify App Health. If the vault is locked, restore the key, or reset it and enrol again.
  • Everything is empty - /data is not mounted, or points somewhere new. Check the mount and ACTUAL_BENCH_DB_PATH.
  • Not writable - volume ownership or permissions. App Health says so plainly.
  • Migration failed - restore, then investigate.
  • The old image cannot read the new database - go forward again, or restore the backup that matches it.
  • Unattended credentials fail after a move - the vault key is different. Re-enrol the flows.