Backup docker peertube using Restic

Hello all i am using peertube using docker and i am backing up my peertube using Restic
i have tested it and it works great but the problem is i am also backing up Postgresql files without creating a dump of it
the reason i do that is because i do not know how i should proceed with it
for now this is how i use it to backup my peertube

version: "3.3"

services:
  backup:
    image: mazzolino/restic
    hostname: docker
    environment:
      RUN_ON_STARTUP: "true"
      BACKUP_CRON: "*/30 * * * *"
      RESTIC_REPOSITORY: b2:dockervolumes:/
      RESTIC_PASSWORD: "${RESTIC_PASSWORD}"
      RESTIC_BACKUP_SOURCES: /var/lib/docker/volumes
      RESTIC_BACKUP_ARGS: >-
        --tag docker-volumes
        --exclude=/var/lib/docker/volumes/peertube-peertube-data/_data/logs
        --verbose
      RESTIC_FORGET_ARGS: >-
        --keep-last 2
        --keep-daily 3
      B2_ACCOUNT_ID: "${RESTIC_B2_ACCOUNT_ID}"
      B2_ACCOUNT_KEY: "${RESTIC_B2_ACCOUNT_KEY}"
      TZ: Europe/Brussels
    volumes:
      # Peertube
      - /var/lib/docker/volumes/peertube-db-data:/var/lib/docker/volumes/peertube-db-data # PostgreSQL
      - /var/lib/docker/volumes/peertube-redis-data:/var/lib/docker/volumes/peertube-redis-data #Redis
      - /var/lib/docker/volumes/peertube-peertube-data:/var/lib/docker/volumes/peertube-peertube-data # Full Data
      - /var/lib/docker/volumes/peertube-peertube-config:/var/lib/docker/volumes/peertube-peertube-config #Config

  prune:
    image: mazzolino/restic
    hostname: docker
    environment:
      RUN_ON_STARTUP: "true"
      PRUNE_CRON: "0 * * * *"
      RESTIC_REPOSITORY: b2:dockervolumes:/restic
      RESTIC_PASSWORD: "${RESTIC_PASSWORD}"
      B2_ACCOUNT_ID: "${RESTIC_B2_ACCOUNT_ID}"
      B2_ACCOUNT_KEY: "${RESTIC_B2_ACCOUNT_KEY}"
      TZ: Europe/Brussels

is it fine to just backup the raw postgresql files without creating a dump ?

i have tested it and it works fine but i am not sure

@szuru you should ask this to the relevant postgresql community, since this is specific to that software (and its use of docker)