Project

General

Profile

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_aggregate.$public.csv"
10

    
11
"$selfDir/psql_script_vegbien" >"$out" <<EOF
12
COPY analytical_aggregate TO STDOUT CSV HEADER NULL 'NULL';
13
EOF
14
make "$out.md5"
(20-20/69)