| ... | ... | @@ -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 |