]> git.donarmstrong.com Git - debbugs.git/blob - sql/dbicdump_command.sh
include function in instalsql for bin ver/src pkg linking
[debbugs.git] / sql / dbicdump_command.sh
1 #!/bin/sh
2
3 if [ -z "$DEBBUGS_SERVICE" ]; then
4     DEBBUGS_SERVICE="debbugs";
5 fi;
6
7 if ! [ -d "sql" ] || ! [ -d "Debbugs" ]; then 
8     echo "In the wrong directory"
9     exit 1;
10 fi;
11
12 dbicdump -I. -o dump_directory=. \
13     -o components='["InflateColumn::DateTime","TimeStamp"]' \
14     -o preserve_case=1 \
15     -o skip_load_external=1 \
16     -o exclude='qr/^dbix_class_deploymenthandler_versions$/' \
17     Debbugs::DB dbi:Pg:service=$DEBBUGS_SERVICE '' '';
18