|
|
|
|
|
by poorlyknit
979 days ago
|
|
pg_dump [0] (or pg_dumpall, linked there) sounds like what you want to use. You could docker exec into the postgres container, then copy the dump from the volume to your backup location on the host. A bit more contrived than copying the volume but you don't need to shut down the server. There's probably some scripts out there for doing this in a structured way but I usually do it more or less manually/use a bash script. [0]: https://www.postgresql.org/docs/current/app-pgdump.html |
|