mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-03-03 10:45:49 +03:00
added docker database backups documentation
This commit is contained in:
parent
eb4092c159
commit
5b1b6ae4aa
|
@ -91,6 +91,29 @@ Production Mode
|
|||
|
||||
Instead of using `dev.yml`, you would use `docker-compose.yml`.
|
||||
|
||||
Database Backups
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
The database has to be running to create/restore a backup.
|
||||
|
||||
First, run the app with `docker-compose -f dev.yml up`.
|
||||
|
||||
To create a backup, run::
|
||||
|
||||
docker-compose -f dev.yml run postgres backup
|
||||
|
||||
|
||||
To list backups, run::
|
||||
|
||||
docker-compose -f dev.yml run postgres list-backups
|
||||
|
||||
|
||||
To restore a backup, run::
|
||||
|
||||
docker-compose -f dev.yml run postgres restore filename.sql
|
||||
|
||||
|
||||
|
||||
Other Useful Tips
|
||||
-----------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user