django-dbbackup
django-dbbackup copied to clipboard
Management commands to help backup and restore your project database and media files
The primary solution before solutions like DBBackup is `dumpdata`/`loaddata`. I don't like it because serialization/deserialization take time. But it can be useful to migrate DB across environment, example: a production...
When I try to restore the database I receive ~~~ dbbackup/db/sqlite.py:74: UserWarning: Error in db restore: no such table: main.auth_group_permissions warnings.warn("Error in db restore: {}".format(err)) ~~~
For SQLite, the [restore function](https://github.com/django-dbbackup/django-dbbackup/blob/master/dbbackup/db/sqlite.py#L66) is ~~~ def restore_dump(self, dump): if not self.connection.is_usable(): self.connection.connect() cursor = self.connection.cursor() for line in dump.readlines(): try: cursor.execute(line.decode('UTF-8')) except OperationalError as err: warnings.warn("Error in db...
dbbackup command fails when database password contains special symbols. I had spaces and the problem is that the mysqldump command does not put quotes around the password. This may go...
`django version : 4.0.3` `django-dbbackup version: 3.3.0` `python version: Python 3.9.7` **When running this command `python manage.py dbbackup` an error come:** `ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation'` **If from...
## Summary Right now we're at a bit of an impasse. It's noted in the original readme that django-dbbackup `...tries to use the traditional dump & restore mechanisms`. In terms...
Typo in docs: DBBACKUP_CLEANUP_FILTER should be DBBACKUP_CLEANUP_KEEP_FILTER as per: https://github.com/jazzband/django-dbbackup/blob/2ef053cda8078817ad6872cb3719e38de3cfdaeb/dbbackup/settings.py#L20 Docs page here: https://django-dbbackup.readthedocs.io/en/master/configuration.html?highlight=DBBACKUP_CLEANUP_KEEP#dbbackup-cleanup-filter Hopefully this helps someone!
# Feature Request _Please help us help you by filling out any applicable information in this template and removing the rest!_ ## Is your feature request related to a problem?...
File "D:\myvenv\lib\site-packages\django\core\management\base.py", line 398, in execute output = self.handle(*args, **options) File "D:\myvenv\lib\site-packages\dbbackup\utils.py", line 118, in wrapper func(*args, **kwargs) File "D:\myvenv\lib\site-packages\dbbackup\management\commands\dbbackup.py", line 58, in handle self.connector = get_connector(database_key) File "D:\myvenv\lib\site-packages\dbbackup\db\base.py", line...
Hi everyone I execure dbbackup command so I got a .sql file from my sqllite database but when I try to restore this file I got below warnings. when I...