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 hashes)

Uploaded Source

Supported by

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