OpenSlides/dev-commands/export-ds.sh
2020-10-23 08:31:20 +02:00

9 lines
248 B
Bash
Executable File

#!/bin/bash
set -e
cd "$(dirname $0)"
TARGET=${1:-export.json}
URL="http://localhost:9010/internal/datastore/reader/get_everything"
curl --header "Content-Type: application/json" -d '{}' $URL 2> /dev/null | python3 strip-meta-fields.py > $TARGET