This release is a pre-release and may not be stable for production use.
django-recovery
Encrypted, deduplicated Django database and media backups, powered by restic.
django-recovery turns your Django DATABASES (and optionally your media directory)
into restic snapshots: always encrypted, deduplicated across backups, and restorable
through a management command.
Status: beta (
1.0.0b1). Settings are the intended 1.0 API; please report issues before the stable release.
Highlights
- Encryption is always on — every snapshot is encrypted client-side; there is no plaintext mode to forget to turn on.
- Deduplication — daily backups cost only the delta, not a full copy each time.
- Atomic failure semantics — a failed dump produces no snapshot, never a half-written one.
- Uses your
STORAGES— point it at a Django storage alias (local disk, or S3 and compatibles, GCS, Azure, SFTP via django-storages); credentials live in one place. - Guarded restores — typed confirmation plus a tag guard that refuses to restore a snapshot into the wrong database.
Install
pip install django-recovery
Requires the restic binary (>= 0.16) on PATH, plus the
command-line client for each PostgreSQL or MySQL database you back up
(pg_dump/psql, mysqldump/mysql); SQLite needs nothing extra. Backups go to a
storage you already configure in STORAGES — Django's FileSystemStorage or a
django-storages backend your project uses.
Quickstart
# settings.py
import os
INSTALLED_APPS = [
# ...
"django_recovery",
]
STORAGES = {
# ... "default" and "staticfiles" ...
"backups": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
"OPTIONS": {"location": "/var/backups/myapp-restic"},
},
}
RECOVERY = {
"STORAGE": "backups",
"PASSWORD": os.environ["RESTIC_PASSWORD"],
"DATABASES": ["default"],
}
python manage.py recovery init
python manage.py recovery backup
python manage.py recovery snapshots
Documentation
Full documentation — settings reference, storage, management commands, scheduling, and FAQ — lives at m16bappi.github.io/django-recovery.
Related
- restic — the backup engine that does the real work.
- Source repository — issues and contributions welcome.
Metadata
Release files for django-recovery 1.0.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_recovery-1.0.0b1.tar.gz | 33.6 kB | With provenance | Details for django_recovery-1.0.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_recovery-1.0.0b1-py3-none-any.whl | Python 3 | none | any | Details for django_recovery-1.0.0b1-py3-none-any.whl |
Total release size: 57.5 kB
Release files / django_recovery-1.0.0b1.tar.gz
| Download URL | django_recovery-1.0.0b1.tar.gz |
|---|---|
| Size | 33.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95feb14536ba95f4ab5e64c6272fad269e18f8d0e8794091d608619dc10831e4
|
|
BLAKE2b-256 checksum How to use checksums |
955a5267645454c5f98572a624858256663dc843805082c7782fb0f119c1c08a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency logRelease files / django_recovery-1.0.0b1-py3-none-any.whl
| Download URL | django_recovery-1.0.0b1-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb901125d243eb39d3d55406916530eac1d983ec45489a2c9f3c8861f1c92d2a
|
|
BLAKE2b-256 checksum How to use checksums |
3acf777287b75ea840bb0978ef957d9b3d3a090bf8c39b813935cbfa11521293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency logSecurity for django-recovery 1.0.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for django_recovery-1.0.0b1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.