Changes
Page history
Update Create a DB dump
authored
Aug 29, 2019
by
Daniel Palomar
Hide whitespace changes
Inline
Side-by-side
Create-a-DB-dump.md
View page @
ae2d30f8
...
...
@@ -56,4 +56,13 @@ $ scp opencell-test.coopdevs.org:opencell.19.08.07.dump .
opencell.19.08.07.dump 100% 1027KB 2.5MB/s 00:00
```
And you have the dump in your local machine!
\ No newline at end of file
And you have the dump in your local machine!
--------------------------
In the backups script we use the next command to generate the dump out of the container:
```
$ docker exec "postgres" pg_dump -U "${DATABASE_USER}" --encoding=UTF8 "${DATABASE_NAME}" > "/opt/backup/.tmp/pg_dump_${DATABASE_NAME}.sql"
```
\ No newline at end of file