Repository navigation
How do I back up the database, or move a deployment to another host? #574
|
I want regular backups of my server's data, and I may move from Vercel + Neon to my own VPS later. What has to be copied, and what breaks during the move? |
Replies: 1 comment
|
State: main at 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
Moving to another host:
Still open: #439 (backups of a PostgreSQL on your own machine), #435 (keeping data in Russia, including moving it). More: docs/deploy.md, Option 2, privacy.en.md, How long things are kept. |
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
pgdatavolume. Also keep a copy of your settings,DIARY_SECRETabove all.docker compose exec -T db pg_dump -U lessons -Fc lessons > lessons.dump. Thepostgresimage trusts connections fr…