It doesnt matter if I use the way described on Teslamates side, with this command:
docker compose exec -T database pg_dump -U teslamate teslamate > /backuplocation/teslamate.bck
Or any other way or in any other folder, it creates the same size of backup size, 0 bytes.