]> matita.cs.unibo.it Git - helm.git/blob - components/binaries/dump_db/dump.sh
- new tactic subst removes simple non recursive equalities from the context
[helm.git] / components / binaries / dump_db / dump.sh
1 ALL_TABLES=`../table_creator/table_creator list all`
2
3 if [ -z "$1" ]; then
4   echo "Dumps to stdout some tables of a given db on mowgli."
5   echo "If no tables are given the dump will contain:"
6   echo "  $ALL_TABLES"
7   echo ""
8   echo "usage: dump.sh dbname [tables...]"
9   echo ""
10   exit 1
11 fi
12 DB=$1
13 shift
14 if [ -z "$1" ]; then
15   TABLES=$ALL_TABLES
16 else
17   TABLES=$@
18 fi
19
20 mysqldump -e --add-drop-table -u helm -h mowgli.cs.unibo.it $DB $TABLES