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

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.0b2
File Size Uploaded Provenance Actions
django_recovery-1.0.0b2.tar.gz 34.9 kB With provenance Details for django_recovery-1.0.0b2.tar.gz

Built distribution (wheel)

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

Total release size: 59.6 kB

Release files / django_recovery-1.0.0b2.tar.gz

Download URL django_recovery-1.0.0b2.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bb70f54c1e861f66a59837f5807d3fe3c587a4959dc12711edffb56898c88352
BLAKE2b-256 checksum
How to use checksums
2b812ddcad40976878d1b862a8d05a9ee8cc5d4906f6df8d0c3c3aa304d6f393
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.0b2-py3-none-any.whl

Download URL django_recovery-1.0.0b2-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5baf6209927d1ea2db8158b796537ad4102fb9a85e6773b24d7c67f0bb66d26
BLAKE2b-256 checksum
How to use checksums
285365102351a7c51b92c9cebe55cc5e060a512620173eb2fd43ccfb99e0c1dc
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.0b2

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.0b2.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