mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 04:07:48 +03:00
Added instructions on how to copy backups from Docker container to host
This commit is contained in:
parent
779365c9f0
commit
8795dacbb3
|
@ -112,7 +112,13 @@ To restore a backup, run::
|
||||||
|
|
||||||
docker-compose -f dev.yml run postgres restore filename.sql
|
docker-compose -f dev.yml run postgres restore filename.sql
|
||||||
|
|
||||||
|
To copy the files from the running Postgres container to the host system::
|
||||||
|
|
||||||
|
docker <postgres containerId>:/backups /host/path/target
|
||||||
|
|
||||||
|
To get your Postgres container ID, run::
|
||||||
|
|
||||||
|
docker ps
|
||||||
|
|
||||||
Other Useful Tips
|
Other Useful Tips
|
||||||
-----------------
|
-----------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user