Skip to content

Platform to manage backups and restores, executing and scheduling

License

Notifications You must be signed in to change notification settings

PhPires13/Backup-Plataform

Repository files navigation

PLATAFORMA-BACKUP

Start Application

  • Run the Application

    • Locally

    • Running the server on a specific address and port

      • Terminal >> inside the project folder
        python manage.py runserver 0.0.0.0:8000
        • 0.0.0.0 wil make the server available on all network interfaces
        • Hosted in your PC accessible by other devices on the same network using your IP
    • Detached from the terminal

      • nohup <command> & enclosing the command
        • log file nohup.out will be created in the current directory
  • Run the Redis Server

    • Locally

    • Running the server on a specific address and port

      • Terminal >> sudo service redis-server --port 6379
        • 6379 is the default port
        • Hosted in your PC accessible by other devices on the same network using your IP
  • Run the Celery Worker and Beat

    • For development purposes

      • Terminal >> inside the project folder
        sudo celery -A plataforma_backup worker --beat --scheduler django --loglevel=info
      • Will run the worker and beat in the same terminal
    • For production purposes

      • Terminal >> inside the project folder
        sudo celery -A plataforma_backup worker --loglevel=info
        sudo celery -A plataforma_backup beat --loglevel=info
    • Detached from the terminal

      • --detach or -d option in the end of the commands
      • nohup <command> & enclosing the command
        • log file nohup.out will be created in the current directory

Installation

  • Python 3.11

  • Install Required Modules:

    • Terminal >> inside the project folder
      pip install -r requirements.txt
  • Redis

  • PostgreSQL-Client

    • It is important to have the lates version of the PostgreSQL-Client, in order for the commands to work with all server versions
    • Linux:

      • Enable PostgreSQL Package Repository
        sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
        wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo tee /etc/apt/trusted.gpg.d/pgdg.asc &>/dev/null
        
      • Update the package list
        sudo apt update
        
      • Install PostgreSQL-Client
        sudo apt install postgresql-client
        
      • Check the version
        psql --version
        

About

Platform to manage backups and restores, executing and scheduling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages