OpenSlides/dev-commands/export-ds.sh

9 lines
248 B
Bash
Raw Permalink Normal View History

2020-10-16 13:11:00 +02:00
#!/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