Skip to main content

This is a fork of the django-backup app

Supports MySQL, PostgreSQL, and SQLite databases.

This app backs up database and the media directory on the local disk in a plain directory, without subdirectories.

It does not set a goal of syncing files offsite. To sync the files or do other post-processing, please use a signal backup_ready or an independent script.

To list and download the backup files via the web, try application django-directory

Installation

Add to the INSTALLED_APPS entry ‘simple_backup’,.

Settings

SIMPLE_BACKUP_DIRECTORY - directory where the backups will be stored. Default value is ‘backups’, relative to the current working directory. This setting can be over-ridden with the option –output-directory (or shorter version -o)

SIMPLE_BACKUP_DAYS - number of days to keep the backup files. Default value is None. If set, older files will be deleted automatically each time the new backup is made. This walue can be over-ridden with a –days option to the command.

SIMPLE_BACKUP_EXCLUDE_TABLE_DATA - the tables listed in this setting will be backed up without the data.

Default value is []. This setting does not work with SQLite databases.

Commands

backup - backs up the site. See output of python manage.py backup –help for more information.

Signals

The command backup sends a signal simple_backups.signals.backup_ready when the backup is prepared and copied to the backups directory.

Changes

2.3 (2024-07-22)

  • Adds option SIMPLE_BACKUP_EXCLUDE_TABLE_DATA to exclude data from selected tables.

2.2 (2023-10-29)

  • Version increment, no new functionalities.

2.1 (2023-10-29)

  • Supports Django 4

2.0 (2023-05-13)

  • Ported to Python3

  • Supports Django > 2

1.1 (2023-05-13)

  • Pins Python support to < 3

Metadata

Release files for django-simple-backup 2.3

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-simple-backup 2.3
File Size Uploaded Provenance
django-simple-backup-2.3.tar.gz 5.5 kB Without provenance Details

Release files / django-simple-backup-2.3.tar.gz

Download URL django-simple-backup-2.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dca973eab88cf64376bb1af5f24ec6273814058423f61cb954366dfcfe7942fa
BLAKE2b-256 checksum
How to use checksums
74d50e034d1aa5de3d46a9d64c9cd102f89d0233a261a89f7c99e03865f94783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for django-simple-backup 2.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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