Taking Care of Your Data

How Buddy stores your data and how to back it up and restore it.

Use of a database

Buddy stores your accounts, categories, budgets, and transactions in a local database.

Buddy will automatically create the database upon first use.

Backing up your database

Regular backups protect you from data loss. Use the Backup Database option (from the File menu) to save a copy of your database.

Add a descriptive comment to you backup, so you will know it’s contents if ever required.

Take backups at the following times:

Restoring a database

If you need to recover from a backup, use this process to replace the current database with a previous backup.

  1. Backup your current database. Be sure to add a comment like “Last backup before restore for …” to the backup.
  2. Use View Backups (from the File menu) and note the exact backup (by filename) you want.
  3. Use About (from the Help menu) and note the Database path. This is where the database resides.
  4. Close Buddy (the application).
  5. Using Windows File Explorer navigate to the database path.
  6. Delete BuddyBudgetHub.db (or move elsewhere). Then rename your selected backup database to BuddyBudgetHub.db.
  7. Open Buddy (the application) and you should see your backed up data.

Buddy keeps track of the database version

To ensure that the database remains compatible with the application, there is version information inside the database.

Starting with a new database

If you need to start new (empty) database, use this process to create a database.

  1. Backup your current database. Be sure to add a comment like “Last backup before new database created” to the backup.
  2. Use About (from the Help menu) and note the Database path.
  3. Close Buddy (the application).
  4. Using Windows File Explorer navigate to to the database path.
  5. Delete BuddyBudgetHub.db (or move elsewhere).
  6. Open Buddy (the application) and you should see an empty database (the main window will be blank).

Externally accessing Buddy’s database

Buddy uses a widely used SQL database called SQLite. A variety of tools support accessing it’s data.

Using SQL to access or correct your database

For advanced users, you can connect directly to Buddy’s database with any SQLite client program, for example DB Browser, DBeaver or Visual Studio Code. Use with care and only after backing up if you are changing any data.

You can also use Buddy’s database with any desktop reporting application that supports SQLite, for example Visual DB, DBeaver, or Helical Insight.

Tables and what they do

Understanding the main tables helps when querying your data or writing corrective SQL.