this post was submitted on 30 Aug 2025
2 points (100.0% liked)

GnuCash Users & Developers

12 readers
1 users here now

πŸ“Š Welcome to GnuCash Users & Developers

This community is for users and developers of GnuCash β€” free, open-source personal and small-business financial accounting software.


βœ… What you can post


πŸ“š Useful Links


πŸ“ Community Guidelines


Happy bookkeeping, and welcome to the community!

founded 11 months ago
MODERATORS
 

I started using a PostgreSQL database with GnuCash instead of a file, and set up a weekly cron job to dump the database to a file. Here's the script:

#!/usr/bin/env bash

# Requires that ~/.pgpass exists, is chmod 600, and contains a line like:
#
# 127.0.0.1:5432:*:gnucash_user:my-secret-password

pg_dump -h 127.0.0.1 -U gnucash_user -d gnucash_db -Fc > ${HOME}/gnucash_$(date +%F).dump

I'm probably going to modify this script to check that ~/.pgpass exists.

Any other changes you think I need?

you are viewing a single comment's thread
view the rest of the comments
[–] RinseChessBacked@lemmy.ml 2 points 11 months ago

Glad to be here! I'm new to Lemmy (and the whole Fediverse) so I figured this would give me a good reason to get on here regularly and use it. I'm probably going to be mostly posting details about how I set up and use GnuCash for myself, in case it helps anyone elseβ€”including my future self when I inevitably forget how I did something 🀣. Feel free to ask questions or post your experiences.