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