You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a -d option is not given, this code will always evaluate to [''], with the result that default is the database chosen.
To Reproduce
Configure DBBACKUP_DATABASES to use a non default database`
python manage.py dbbackup
Note that the database that is backed up is defaul, not the database specified by DBBACKUP_DATABASES
Expected behavior
The dbbackup command should backup the databases configure in DBBACKUP_DATABASES
Screenshots or reproduction
If applicable, add screenshots (errors, example of the behavior, etc.) to help explain your problem or post a link to a repository that replicates the issue.
Versions
Django-dbbackup
pypi: 4.0.2
External tools
Python: 3.11.6
Django: 4.1.13
OS: MacOS
The text was updated successfully, but these errors were encountered:
Bug Report
Please help us help you by filling out any applicable information in this template and removing the rest!
Describe the bug
The
DBBACKUP_DATABASES
configuration is ignored. This is due to a bug in this line of code:django-dbbackup/dbbackup/management/commands/dbbackup.py
Line 83 in 790ec8b
If a
-d
option is not given, this code will always evaluate to['']
, with the result thatdefault
is the database chosen.To Reproduce
DBBACKUP_DATABASES
to use a nondefault
database`python manage.py dbbackup
defaul
, not the database specified byDBBACKUP_DATABASES
Expected behavior
The
dbbackup
command should backup the databases configure inDBBACKUP_DATABASES
Screenshots or reproduction
If applicable, add screenshots (errors, example of the behavior, etc.) to help explain your problem or post a link to a repository that replicates the issue.
Versions
Django-dbbackup
External tools
The text was updated successfully, but these errors were encountered: