{"id":27297983,"url":"https://github.com/itell-solutions/django_postgres_backup","last_synced_at":"2025-04-12T00:25:16.220Z","repository":{"id":61651308,"uuid":"529138869","full_name":"itell-solutions/django_postgres_backup","owner":"itell-solutions","description":"Django managed commands to backup and restore PostgreSQL databases with multiple generations","archived":false,"fork":false,"pushed_at":"2022-10-18T14:43:08.000Z","size":115,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T12:19:01.631Z","etag":null,"topics":["backup","django","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itell-solutions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-26T06:17:03.000Z","updated_at":"2024-11-23T05:22:50.000Z","dependencies_parsed_at":"2022-10-20T03:00:19.029Z","dependency_job_id":null,"html_url":"https://github.com/itell-solutions/django_postgres_backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itell-solutions%2Fdjango_postgres_backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itell-solutions%2Fdjango_postgres_backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itell-solutions%2Fdjango_postgres_backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itell-solutions%2Fdjango_postgres_backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itell-solutions","download_url":"https://codeload.github.com/itell-solutions/django_postgres_backup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456384,"owners_count":21106605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","django","postgresql"],"created_at":"2025-04-12T00:25:15.356Z","updated_at":"2025-04-12T00:25:16.206Z","avatar_url":"https://github.com/itell-solutions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI](https://img.shields.io/pypi/v/django_postgres_backup)](https://pypi.org/project/django_postgres_backup/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/django_postgres_backup.svg)](https://www.python.org/downloads/)\n[![Build Status](https://github.com/itell-solutions/django_postgres_backup/actions/workflows/build.yaml/badge.svg)](https://github.com/itell-solutions/django_postgres_backup/actions/workflows/build.yaml)\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![License](https://img.shields.io/github/license/itell-solutions/django_postgres_backup)](https://opensource.org/licenses/MIT)\n\n# Django managed commands to backup and restore PostgreSQL databases with multiple generations\n\nThe `django_postgres_backup` Django module includes managed commands to back\nup and restore a PostgreSQL database with time stamped names to provide\nmultiple backup generations.\n\n## Installation\n\nTo install, depending on your package manager, run:\n\n```bash\npip install --update django_postgres_backup\n```\n\nor\n\n```bash\npoetry add django_postgres_backup\n```\n\n## Usage\n\nTo add the backup related managed commands to your project, add it to\n`settings.INSTALLED_APPS`.\n\n```python\nINSTALLED_APPS = [\n    ...,\n    \"django_postgres_backup\",\n]\n```\n\nAfter this, you can backup the default database by running:\n\n```bash\npython manage.py postgres_backup\n```\n\nThe created backup can now be restored by running:\n\n```bash\npython manage.py postgres_backup\n```\n\nYou can clean and restore a whole database with all the tables and data\n\n```bash\npython manage.py postgres_restore --clean --if-exists\n```\n\n## Configuration\n\nYou can set up how many generations of backup should be saved, all other will be deleted.\n\n```python\nPOSTGRES_BACKUP_GENERATIONS = 3\n```\n\n## Limitations\n\nBackup and restore works only with postgresql.\n\n## License\n\nCopyright (c) 2022 ITELL.SOLUTIONS GmbH, Graz, Austria.\n\nDistributed under the\n[MIT license](https://en.wikipedia.org/wiki/MIT_License). For details refer to\nthe file `LICENSE`.\n\nThe source code is available from\n\u003chttps://github.com/itell-solutions/django_postgres_backup\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitell-solutions%2Fdjango_postgres_backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitell-solutions%2Fdjango_postgres_backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitell-solutions%2Fdjango_postgres_backup/lists"}