]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
Add tool to dump database schema
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Oct 2017 10:35:47 +0000 (11:35 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Oct 2017 10:35:47 +0000 (11:35 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/tools/dump-database-schema.sh [new file with mode: 0755]

index 1b9720c1f3149ba18d979aa30874286748d81d8c..514e3ab4903e5e243129561443dc087c1b679bbe 100644 (file)
@@ -426,6 +426,7 @@ dist_geoip_DATA = \
 geoipdir = $(datadir)/geoip
 
 EXTRA_DIST += \
+       src/tools/dump-database-schema.sh \
        src/tools/update-geoip-database.sh
 
 # ------------------------------------------------------------------------------
diff --git a/src/tools/dump-database-schema.sh b/src/tools/dump-database-schema.sh
new file mode 100755 (executable)
index 0000000..d76bb06
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+pg_dump --schema-only -h db-master.ipfire.org -U pakfire pakfire \
+       > src/database.sql