Skip to main content

Data backup

For backup, the following copies are required:

  1. Application database. Database dump can be obtained by executing:

    sudo docker exec app-db pg_dump -U backend backend > db_dump.sql

on the host with the APP module deployed

  1. Directories:

    • /opt/derscanner/app/services/backend/files/
    • /opt/derscanner/app/services/frontend/nginx/ssl/
  2. Configuration files:

    • From the APP module server:
      • /opt/derscanner/app/configs/backend.env
      • /opt/derscanner/app/configs/postgres.env
      • /opt/derscanner/app/services/frontend/nginx/templates/default.conf.template
    • From the SAST module server:
      • /opt/derscanner/core/sast/configs/sast-daemon.env
    • From the DAST module server:
      • /opt/derscanner/core/dast/configs/dast-daemon.env
      • /opt/derscanner/core/dast/configs/zap.env
    • From the SCA module server:
      • /opt/derscanner/core/osa/configs/osa-daemon.env
  3. Application logs (optional)