Skip to main content

A Django app that allows you to create backup of project and restore it later.

Project description

Django State Keeper

Django State Keeper is a Django app that allows you to create backups of your project's database, media files, and selected directories. It provides the ability to restore your project's state from a backup and offers automatic backups sent to a Telegram chat.

Features

  • Create backups as ZIP files containing selected project files and directories.
  • Restore project state by uploading a backup ZIP file.
  • Configure automatic backups sent to a Telegram chat.

Installation

  1. Install the Django State Keeper library using pip:

    pip install django-state-keeper
    
  2. Add django_state_keeper to the INSTALLED_APPS list in your Django project's settings:

    INSTALLED_APPS = [
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.messages',
        'django.contrib.staticfiles',
        'django_state_keeper'
    ]
    
  3. Include the Django State Keeper URL path in your project's urls.py file. Add the following line at the end of the urls.py:

    urlpatterns += [path('your-customized-path/', include('django_state_keeper.urls'))]
    

    Replace 'your-customized-path/' with the desired URL path where you want to access the Django State Keeper app.

  4. Run migrations to create the necessary database tables:

    python manage.py migrate
    
  5. Start the Django development server:

    python manage.py runserver
    
  6. Access the Django State Keeper panel from Django admin site.

How To Use

  • You can create a "Backup Packaging" instance to customize your packaging method, and then you can create and download a backup by clicking on "Download" button.
  • You can open the "Upload Backup" panel and upload a backup file to be injected immediately.
  • You can create a "Auto Backup Sender Service" instance to receive backup files in telegram chat periodically.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-state-keeper-1.0.tar.gz (10.2 kB view details)

Uploaded Source

File details

Details for the file django-state-keeper-1.0.tar.gz.

File metadata

  • Download URL: django-state-keeper-1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for django-state-keeper-1.0.tar.gz
Algorithm Hash digest
SHA256 087d5721549d9654f33453f0695f646771a005a6c1ce3f179e0baed1a98750eb
MD5 3e78eba979dec0ba303fa08ad68dffbd
BLAKE2b-256 897c392d61537441bcba192d6e89daaeb962bc11a58f8a2b78b3e33d012fbd95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page