| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| django_dbbackup-5.0.0-py3-none-any.whl | 2025-08-30 | 33.1 kB | |
| django_dbbackup-5.0.0.tar.gz | 2025-08-30 | 25.0 kB | |
| 5.0.0 source code.tar.gz | 2025-08-30 | 93.1 kB | |
| 5.0.0 source code.zip | 2025-08-30 | 135.3 kB | |
| README.md | 2025-08-30 | 3.0 kB | |
| Totals: 5 Items | 289.5 kB | 1 | |
Added
- Implement new
SqliteBackupConnectorto backup SQLite3 databases using the.backupcommand (safe to execute on databases with active connections). - Verified full Windows compatibility via new CI workflows.
- Add Django Signals support for backup and restore operations. New signals include
pre_backup,post_backup,pre_restore,post_restore,pre_media_backup,post_media_backup,pre_media_restore, andpost_media_restore. - New
DjangoConnectorthat provides database-agnostic backup and restore functionality using Django's built-indumpdataandloaddatamanagement commands.
Changed
- This repository has been transferred out of Jazzband due to logistical concerns.
- Improve error message for missing database tools (
pg_dump,mysqldump, etc.) to provide guidance instead of generic "No such file or directory" errors. - Changed default SQLite connector from
SqliteConnectortoSqliteBackupConnectorto adhere to best practices. - Set default
IF_EXISTStoTruefor PostgreSQL connectors (PgDumpConnectorandPgDumpBinaryConnector) to reduce restore errors when objects are absent. - If
PASSWORDis set toNonefor PostgreSQL connectors, the--no-passwordflag is now automatically used.
Removed
- Drop support for end-of-life Python 3.7 and 3.8.
- Drop support for end-of-life Django 3.2.
- Drop
pytzdependency in favor of Python's standard libraryzoneinfo(following Django 4.0+ timezone implementation). - Drop support for
DBBACKUP_STORAGEANDDBBACKUP_STORAGE_OPTIONSsettings, use Django'sSTORAGES['dbbackup']setting instead. - Remove deprecated
DBBACKUP_FAILURE_RECIPIENTSsetting, useDBBACKUP_ADMINSinstead. - Remove deprecated code for legacy Django version compatibility.
Fixed
- Fixed
-Oflag to properly handle S3 URIs. Nowpython manage.py dbbackup -O s3://bucket/path/andpython manage.py mediabackup -O s3://bucket/path/correctly route S3 URIs to the storage backend instead of attempting to write to local filesystem. - Fix issues with parsing excess whitespace within
dbbackup -d "<COMMA_SEPARATED_ARGS>" - Fix encryption support when using
gnupg==5.x. - Resolve SQLite backup temporary file locking issues on Windows.
- Fix MediaRestore path corruption for files containing "media" in their paths.
- Fix FTP storage restore issue where file objects without
fileno()support causedio.UnsupportedOperationerror during database restore operations. - Fix SQLite restore failing when multi-line
TextFieldcontent contains semicolons. - Fix SQLite
no such tableerrors. - Fix SQLite
UNIQUE constrainterrors. - Fix SQLite
index/trigger/view<NAME> already existserrors. - Fix PostgreSQL restore errors with identity columns by automatically enabling
--if-existswhen using--cleaninPgDumpBinaryConnector.
Security
- Use environment variable for PostgreSQL password to prevent password leakage in logs/emails.