#!/bin/bash
# Exports analytical DB
selfDir="$(dirname -- "$0")"
out="$selfDir/../backups/analytical_aggregate.${public=public}.csv"
"$selfDir/psql_script_vegbien" >"$out" <<EOF
COPY analytical_aggregate TO STDOUT CSV HEADER;
EOF