2005-08-09 22:28:52 +02:00
|
|
|
### backupninja PostgreSQL config file ###
|
|
|
|
|
|
|
|
# backupdir = <dir> (default: /var/backups/postgres)
|
|
|
|
# where to dump the backups
|
2005-08-09 22:59:20 +02:00
|
|
|
|
2005-08-09 22:28:52 +02:00
|
|
|
# databases = < all | db1 db2 db3 > (default = all)
|
2021-01-22 17:24:14 +01:00
|
|
|
# which databases to backup. should either be the word 'all' or a
|
2005-08-09 22:28:52 +02:00
|
|
|
# space separated list of database names.
|
|
|
|
# Note: when using 'all', pg_dumpall is used instead of pg_dump, which means
|
|
|
|
# that cluster-wide data (such as users and groups) are saved.
|
2005-08-09 22:59:20 +02:00
|
|
|
|
2005-08-09 22:28:52 +02:00
|
|
|
# compress = < yes | no > (default = yes)
|
2021-01-22 17:24:14 +01:00
|
|
|
# if yes, compress the pg_dump/pg_dumpall output.
|
2005-08-09 22:59:20 +02:00
|
|
|
|
2010-10-12 02:53:00 +02:00
|
|
|
# format = < plain | tar | custom > (default = plain)
|
|
|
|
# plain - Output a plain-text SQL script file with the extension .sql.
|
|
|
|
# When dumping all databases, a single file is created via pg_dumpall.
|
2021-01-22 17:24:14 +01:00
|
|
|
# tar - Output a tar archive suitable for input into pg_restore. More
|
|
|
|
# flexible than plain and can be manipulated by standard Unix tools
|
2010-10-12 02:53:00 +02:00
|
|
|
# such as tar. Creates a globals.sql file and an archive per database.
|
|
|
|
# custom - Output a custom PostgreSQL pg_restore archive. This is the most
|
|
|
|
# flexible format allowing selective import and reordering of database
|
|
|
|
# objects at the time the database is restored via pg_restore. This
|
|
|
|
# option creates a globals.sql file containing the cluster role and
|
|
|
|
# other information dumped by pg_dumpall -g and a pg_restore file
|
|
|
|
# per selected database. See the pg_dump and pg_restore man pages.
|
|
|
|
|
2006-11-01 19:26:41 +01:00
|
|
|
### You can also set the following variables in /etc/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)
|