Skip to main content
Pre-release

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.0b3). 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.

Metadata

Release files for django-recovery 1.0.0b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-recovery 1.0.0b3
File Size Uploaded Provenance Actions
django_recovery-1.0.0b3.tar.gz 37.8 kB With provenance Details for django_recovery-1.0.0b3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-recovery 1.0.0b3
File Interpreter ABI Platform Actions
django_recovery-1.0.0b3-py3-none-any.whl Python 3 none any Details for django_recovery-1.0.0b3-py3-none-any.whl

Total release size: 64.3 kB

Release files / django_recovery-1.0.0b3.tar.gz

Download URL django_recovery-1.0.0b3.tar.gz
Size 37.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fb59b23a8d1bc9c95df591cbae658d6f0b7e78fe66e967b75f310ac88fc6c4e9
BLAKE2b-256 checksum
How to use checksums
55dc0174ded221567c10f7b8c0b3d91025855497eae2632764b0a6d668e6cba8
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 log

Release files / django_recovery-1.0.0b3-py3-none-any.whl

Download URL django_recovery-1.0.0b3-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5da46c46faa2c070779bbe26ac39643767ff0c83352bd50e9f9fc5b076407c70
BLAKE2b-256 checksum
How to use checksums
2535a852a0c19245dc8bce1cd8da2d4ffaf379446e77e352f349b7240090f14e
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 log

Security for django-recovery 1.0.0b3

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.

Select from 2 files

Attestation for django_recovery-1.0.0b3.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page