django-dbbackup
django-dbbackup copied to clipboard
Management commands to help backup and restore your project database and media files
It would be nice to have the ability of using multiple backup storage backends so the backups will be stored in multiples places. For instance, django.core.files.storage.FileSystemStorage for storing locally and...
Restore of a compressed, encrypted database backup fails. Media restore (also compressed and encrypted) works fine though. Media: ``` python manage.py mediarestore -z -e --passphrase pass Restoring backup for media...
I had problems with backing up data to SFTP as mentioned here: https://github.com/jschneier/django-storages/issues/199 But, playing with the settings and some input from @jbittel I finally make it work! Here are...
# Type of PR (feature, enhancement, bug fix, etc.) ## Description File coming from external server like FTP are not well restored due to this error: `Restore tempfile created 0...
# Bug Report Running the dbrestore command raise an error which is due to `Restore tempfile created: 0 B`. ## Describe the bug I use an FTP server as backup...
Hi, This project actualy already uses unittest.mock in some places: https://github.com/jazzband/django-dbbackup/blob/87952dcbffb91c3a8472581b3172dc684b0b405f/dbbackup/tests/commands/test_dbbackup.py#L6 https://github.com/jazzband/django-dbbackup/blob/87952dcbffb91c3a8472581b3172dc684b0b405f/dbbackup/tests/commands/test_dbrestore.py#L7 https://github.com/testing-cabal/mock `mock is now part of the Python standard library, available as [unittest.mock](https://docs.python.org/dev/library/unittest.mock.html) in Python 3.3 onwards.`
updates: - [github.com/psf/black: 24.2.0 → 24.3.0](https://github.com/psf/black/compare/24.2.0...24.3.0) - [github.com/hhatto/autopep8: v2.0.4 → v2.1.0](https://github.com/hhatto/autopep8/compare/v2.0.4...v2.1.0)
## Description Add option `--if-exists` for pg_dump command. Resolves #478 ## Checklist Please update this checklist as you complete each item: - [ ] Tests have been developed for bug...
# Bug Report ## Describe the bug Trying to restore from a backup, I'm running into the following error: ``` Error running: pg_restore --dbname=postgresql://postgres:password@db:5432/shipper --single-transaction --clean pg_restore: error: could not...
### Current Situation When I run dbrestore command on postgres i get this error pg_restore: error: could not execute query: ERROR: column "id" of relation ... is an identity column...