aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql/pg-restore.confd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-29 12:28:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-29 12:28:31 +0000
commit64bce71141d9562664c0a852dd096978579ea5f8 (patch)
tree860c2a014423669b54fd94980c46833cfefa55cc /main/postgresql/pg-restore.confd
parent09838439c042827adfa17b7cf387729c9bc03f71 (diff)
downloadaports-64bce71141d9562664c0a852dd096978579ea5f8.tar.bz2
aports-64bce71141d9562664c0a852dd096978579ea5f8.tar.xz
main/postgresql: depend on client. added pg-restore init.d script
New feature to restore backe up databases on bootup. Helps when you run postgresql databases from tmpfs.
Diffstat (limited to 'main/postgresql/pg-restore.confd')
-rw-r--r--main/postgresql/pg-restore.confd16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/postgresql/pg-restore.confd b/main/postgresql/pg-restore.confd
new file mode 100644
index 0000000000..18bff4c2a3
--- /dev/null
+++ b/main/postgresql/pg-restore.confd
@@ -0,0 +1,16 @@
+
+# Enable this to dump databases on shutdown and restore on boot
+#
+#PGDUMP="/var/lib/postgresql/backup/databases.pgdump"
+
+# The dump file will be deleted once restored unless KEEP_DUMP is set.
+# This is to avoid accidental restoring of running database. If you know what
+# you are doing and want keep the dump, then enable the KEEP_DUMP option
+# below.
+#
+#KEEP_DUMP=yes
+
+# If you enable the KEEP_DUMP bove you probably also want the --clean option
+# the the pg_dumpall command.
+#PG_DUMPALL_OPTS="--clean"
+