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