-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env.conf
More file actions
29 lines (23 loc) · 1.14 KB
/
Copy pathexample.env.conf
File metadata and controls
29 lines (23 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
backup_dir="backups/postgres" # Backup specific
keep_old_backups="true" # Backup specific
db_backup="backups/postgres/dumps-$(date -I)" # Restore specific
db_user="postgres"
# note that this user must have access to all databases to be backed up
# if you are using this script in production, please create a user with limited access to the databases to be backed up
PORT=5432
# multiple ports can be defined in .pgpass file
#export PGPASSWORD="asfdsd"
# please use .pgpass file instead of PGPASSWORD if u r using this script in production
excluded_databases="template0|template1|azure*|postgres"
# database to exclude from backup, format it with | as separator, example: "template0|template1|azure*|postgres"
# can accept regex, can be empty
# define multiple hosts as array and loop through them
# example: hosts=("host1" "host2" "host3")
hostname_list=("db1" "db2" "db3")
##TODO
# add dedicated user creation per database and print them in .pgpass format
# Restore host is currently only for single host, multi host is not supported
restore_host=("db4")
restore_admin_user="postgres"
create_user="true"
grant_permissions="true"