-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env
54 lines (39 loc) · 1.34 KB
/
.env
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#################################################
## DOCKER POSTGRESQL BACKUP AND RESTORE CONFIG ##
#################################################
# Remote machine to connect to in order to
# transfer backup files.
REMOTE_NAME=''
# Docker database container name to enter
CONTAINER_NAME=''
# Optional system user to run backups and restoration as.
# If the user the script is running as doesn't match this
# the script terminates. Leave blank to skip this check.
BACKUP_USER=''
# Password to pass as an environment variable to the script
PG_PASS=''
# Optional hostname to adhere to pg_hba policies.
# Will default to "localhost" if none is specified.
HOSTNAME=''
# Optional username to connect to database as.
# Will default to "postgres" if none is specified.
USERNAME=''
# Database to backup or restore
DATABASE=''
# Port where the connection should be achieved
PORT=''
# This dir will be created if it doesn't exist.
# This must be writable by the user the script is
# running as.
BACKUP_DIR=''
# Will produce a gzipped plain-format backup if set to "yes"
ENABLE_PLAIN_BACKUPS='yes'
### Retention settings ###
# Which day to take the weekly backup from
# (1-7 = Monday-Sunday)
DAY_OF_WEEK_TO_KEEP='5'
# Number of days to keep daily backups
DAYS_TO_KEEP='7'
# How many weeks to keep weekly backups
WEEKS_TO_KEEP='2'
######################################