3 # Drop Bacula tables -- works for whatever is configured,
4 # MySQL, SQLite, Ingres, or PostgreSQL
7 # Bacula® - The Network Backup Solution
9 # Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
11 # The main author of Bacula is Kern Sibbald, with contributions from many
12 # others, a complete list can be found in the file AUTHORS.
14 # You may use this file and others of this release according to the
15 # license defined in the LICENSE file, which includes the Affero General
16 # Public License, v3.0 ("AGPLv3") and some additional permissions and
17 # terms pursuant to its AGPLv3 Section 7.
19 # Bacula® is a registered trademark of Kern Sibbald.
22 default_db_type=@DEFAULT_DB_TYPE@
25 # See if the first argument is a valid backend name.
26 # If so the user overrides the default database backend.
52 # If no new db_type is gives use the default db_type.
54 if [ -z "${db_type}" ]; then
55 db_type="${default_db_type}"
58 @scriptdir@/drop_${db_type}_tables $*
59 echo "Dropped ${db_type} tables"