this post was submitted on 30 Aug 2025
1 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 4 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?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here