Open tarasinf opened 6 years ago
Are you sure pg_dump
is installed ?
hello, Estoy usando openshift 3, como hago para crear un backup de la base de datos en mi maquina local windows, y como lo restauro
pg_dump
requirement should be listed on "Installation" section of ReadTheDocs
I also encountered this after attempting to run using django inside a dockerized container of alpine linux.
As far as I can tell, Alpine's minimum postgres dependency for psycopg2
is postgres-dev
, however you must also apk install
postgres-client
to make pg_dump
available on that machine.
Once you've done this, you're able to run ./manage.py dbbackup
just fine.
A few more notes and links here. I agree with @iAnanich about considering adding a note about this in the docs.
Run
python manage.py dbbackup
, get error:[Errno 2] No such file or directory
, traceback:Under docker compose. Django:
1.11.7
django-dbbackup:3.2.0
djangorestframework:3.7.1