mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-17 08:41:08 +00:00
Added instructions on how to copy backups from Docker container to host
This commit is contained in:
parent
779365c9f0
commit
8795dacbb3
1 changed files with 6 additions and 0 deletions
|
|
@ -112,7 +112,13 @@ To restore a backup, run::
|
|||
|
||||
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
|
||||
-----------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue