Update Create a DB dump authored by Daniel Palomar's avatar Daniel Palomar
...@@ -57,3 +57,12 @@ opencell.19.08.07.dump ...@@ -57,3 +57,12 @@ opencell.19.08.07.dump
``` ```
And you have the dump in your local machine! 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