Skip to content
Discussion options

You must be logged in to vote

State: main at 4c93edb4, 1 November 2026: v0.10.0 in progress, nothing released. No backup or move procedure is written yet. #439 includes backups of a PostgreSQL on your own machine, and #435's design covers moving the data.

What follows comes from how the server keeps its state. The commands are standard PostgreSQL tools, and the project has not tested them as a procedure.

What to back up: the database, and nothing else. The server keeps no files of its own. On compose, all the data is in the pgdata volume. Also keep a copy of your settings, DIARY_SECRET above all.

  • Compose: docker compose exec -T db pg_dump -U lessons -Fc lessons > lessons.dump. The postgres image trusts connections fr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenpearson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area:server area:db for:operator Whoever runs a server or builds and signs an APK of their own
1 participant