Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 2, 2025

Bumps django-dbbackup from 4.3.0 to 5.0.0.

Release notes

Sourced from django-dbbackup's releases.

5.0.0

Added

  • Implement new SqliteBackupConnector to backup SQLite3 databases using the .backup command (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, and post_media_restore.
  • New DjangoConnector that provides database-agnostic backup and restore functionality using Django's built-in dumpdata and loaddata management 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 SqliteConnector to SqliteBackupConnector to adhere to best practices.
  • Set default IF_EXISTS to True for PostgreSQL connectors (PgDumpConnector and PgDumpBinaryConnector) to reduce restore errors when objects are absent.
  • If PASSWORD is set to None for PostgreSQL connectors, the --no-password flag 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 pytz dependency in favor of Python's standard library zoneinfo (following Django 4.0+ timezone implementation).
  • Drop support for DBBACKUP_STORAGE AND DBBACKUP_STORAGE_OPTIONS settings, use Django's STORAGES['dbbackup'] setting instead.
  • Remove deprecated DBBACKUP_FAILURE_RECIPIENTS setting, use DBBACKUP_ADMINS instead.
  • Remove deprecated code for legacy Django version compatibility.

Fixed

  • Fixed -O flag to properly handle S3 URIs. Now python manage.py dbbackup -O s3://bucket/path/ and python 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 caused io.UnsupportedOperation error during database restore operations.
  • Fix SQLite restore failing when multi-line TextField content contains semicolons.
  • Fix SQLite no such table errors.
  • Fix SQLite UNIQUE constraint errors.
  • Fix SQLite index/trigger/view <NAME> already exists errors.
  • Fix PostgreSQL restore errors with identity columns by automatically enabling --if-exists when using --clean in PgDumpBinaryConnector.

Security

  • Use environment variable for PostgreSQL password to prevent password leakage in logs/emails.
Changelog

Sourced from django-dbbackup's changelog.

[5.0.0] - 2025-08-30

Added

  • Implement new SqliteBackupConnector to backup SQLite3 databases using the .backup command (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, and post_media_restore.
  • New DjangoConnector that provides database-agnostic backup and restore functionality using Django's built-in dumpdata and loaddata management 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 SqliteConnector to SqliteBackupConnector to adhere to best practices.
  • Set default IF_EXISTS to True for PostgreSQL connectors (PgDumpConnector and PgDumpBinaryConnector) to reduce restore errors when objects are absent.
  • If PASSWORD is set to None for PostgreSQL connectors, the --no-password flag 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 pytz dependency in favor of Python's standard library zoneinfo (following Django 4.0+ timezone implementation).
  • Drop support for DBBACKUP_STORAGE AND DBBACKUP_STORAGE_OPTIONS settings, use Django's STORAGES['dbbackup'] setting instead.
  • Remove deprecated DBBACKUP_FAILURE_RECIPIENTS setting, use DBBACKUP_ADMINS instead.
  • Remove deprecated code for legacy Django version compatibility.

Fixed

  • Fixed -O flag to properly handle S3 URIs. Now python manage.py dbbackup -O s3://bucket/path/ and python 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 caused io.UnsupportedOperation error during database restore operations.
  • Fix SQLite restore failing when multi-line TextField content contains semicolons.
  • Fix SQLite no such table errors.
  • Fix SQLite UNIQUE constraint errors.
  • Fix SQLite index/trigger/view <NAME> already exists errors.
  • Fix PostgreSQL restore errors with identity columns by automatically enabling --if-exists when using --clean in PgDumpBinaryConnector.

Security

  • Use environment variable for PostgreSQL password to prevent password leakage in logs/emails.
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [django-dbbackup](https://github.com/Archmonger/django-dbbackup) from 4.3.0 to 5.0.0.
- [Release notes](https://github.com/Archmonger/django-dbbackup/releases)
- [Changelog](https://github.com/Archmonger/django-dbbackup/blob/master/CHANGELOG.md)
- [Commits](Archmonger/django-dbbackup@4.3.0...5.0.0)

---
updated-dependencies:
- dependency-name: django-dbbackup
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Python related labels Sep 2, 2025
@codecov
Copy link

codecov bot commented Sep 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.41%. Comparing base (dacf82d) to head (e15c835).
⚠️ Report is 59 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #947   +/-   ##
=======================================
  Coverage   68.41%   68.41%           
=======================================
  Files          71       71           
  Lines        2023     2023           
=======================================
  Hits         1384     1384           
  Misses        639      639           
Flag Coverage Δ
server 73.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ericswpark ericswpark merged commit 43c68b5 into master Oct 24, 2025
10 checks passed
@ericswpark ericswpark deleted the dependabot/pip/server/django-dbbackup-5.0.0 branch October 24, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Python related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants