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

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

Built distribution (wheel)

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

Total release size: 59.5 kB

Release files / django_recovery-1.0.0b4.tar.gz

Download URL django_recovery-1.0.0b4.tar.gz
Size 34.3 kB
Tags Source
SHA-256 checksum
How to use checksums
47db58db954e31fa29ff33330f945270473bf9e55533c004acac7945924aaeb6
BLAKE2b-256 checksum
How to use checksums
1199ea8abc6cae3cbc554d4c4aa5d7da7956732af3ff7eb72b383b0bcb6b53b0
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.0b4-py3-none-any.whl

Download URL django_recovery-1.0.0b4-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dc07a80f7f75a87e62ddf8c1363a12095f0d27e230015b7d9a0007b66307a12
BLAKE2b-256 checksum
How to use checksums
e3f6be1edd974539fef64abdb78e4450a790c58d301a036488e042af4b126319
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.0b4

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