projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pgsql: support PGSQLUSER for real (Closes: #396578)
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
pgsql.helper
diff --git
a/handlers/pgsql.helper
b/handlers/pgsql.helper
index 599c232a966bf1e30de247563c3da6e00411a6f2..80246167dcfc174b37bbc6088ddf7923a95a5250 100644
(file)
--- a/
handlers/pgsql.helper
+++ b/
handlers/pgsql.helper
@@
-1,4
+1,5
@@
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
+
HELPERS="$HELPERS pgsql:postgresql_database_backup"
do_pgsql_vserver() {
HELPERS="$HELPERS pgsql:postgresql_database_backup"
do_pgsql_vserver() {
@@
-95,6
+96,11
@@
$pgsql_databases
# if yes, compress the pg_dump/pg_dumpall output.
$pgsql_compress
# if yes, compress the pg_dump/pg_dumpall output.
$pgsql_compress
+### You can also set the following variables in backupninja.conf:
+# PGSQLDUMP: pg_dump path (default: /usr/bin/pg_dump)
+# PGSQLDUMPALL: pg_dumpall path (default: /usr/bin/pg_dumpall)
+# PGSQLUSER: user running PostgreSQL (default: postgres)
+
EOF
chmod 600 $next_filename
EOF
chmod 600 $next_filename