root/bin/export_analytical_db @ 6537
1 |
#!/bin/bash
|
---|---|
2 |
# Exports analytical DB
|
3 |
|
4 |
selfDir="$(dirname -- "$0")" |
5 |
|
6 |
out="$selfDir/../backups/analytical_aggregate.${public=public}.csv" |
7 |
|
8 |
"$selfDir/psql_script_vegbien" >"$out" <<EOF |
9 |
COPY analytical_aggregate TO STDOUT CSV HEADER NULL 'NULL';
|
10 |
EOF
|