django-postgres-backup 1.0.0

Creator: codyrutscher

Last updated:

Add to Cart

Description:

djangopostgresbackup 1.0.0

Django managed commands to backup and restore PostgreSQL databases with multiple generations
The django_postgres_backup Django module includes managed commands to back
up and restore a PostgreSQL database with time stamped names to provide
multiple backup generations.
Installation
To install, depending on your package manager, run:
pip install --update django_postgres_backup

or
poetry add django_postgres_backup

Usage
To add the backup related managed commands to your project, add it to
settings.INSTALLED_APPS.
INSTALLED_APPS = [
...,
"django_postgres_backup",
]

After this, you can backup the default database by running:
python manage.py postgres_backup

The created backup can now be restored by running:
python manage.py postgres_backup

You can clean and restore a whole database with all the tables and data
python manage.py postgres_restore --clean --if-exists

Configuration
You can set up how many generations of backup should be saved, all other will be deleted.
POSTGRES_BACKUP_GENERATIONS = 3

Limitations
Backup and restore works only with postgresql.
License
Copyright (c) 2022 ITELL.SOLUTIONS GmbH, Graz, Austria.
Distributed under the
MIT license. For details refer to
the file LICENSE.
The source code is available from
https://github.com/itell-solutions/django_postgres_backup.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.