-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
59 lines (47 loc) · 2.72 KB
/
.env.example
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
55
56
57
58
59
###################################################################
# CONFIGURATION SECTION #
###################################################################
# The configuration section is the only section you should modify,
# unless you really(!) know what you are doing!!!
# Make sure to always comply with the name format of the variables
# below. As you may have noticed, all variables related to each
# other begin with the same token (i.e. WIKI, CLOUD, ...).
# To add any additional directories to be backed up, you should only
# add three (3) new lines and modify ${TOKENS} variable. See the
# examples below to get a better understanding.
# Example of ${TOKENS} variable.
TOKENS="FOO BAR" # For any additional entry add the appropriate
# <token-uppercase> separating it with a space
# character from existing tokens.
# Template - The three lines that should be added for every new directory addition.
# <token-uppercase>_BACKUPS_DIR="/path/to/source/dir" # No '/' at the end of the path!
# <token-uppercase>_DIR="/path/to/destination/dir" # No '/' at the end of the path!
# <token-uppercase>_DATABASE_USER="Databaase username"
# <token-uppercase>_DATABASE_NAME="Databaase name"
# <token-uppercase>_DATABASE_PASSWORD="DatabaasePassword"
# <token-uppercase>_DATABASE_HOST="localhost"
# <token-uppercase>_DATABASE_PORT="5432"
# <token-uppercase>_BACKUPS_AMOUNT=7 # The amount of days that backups will be stored
FOO_BACKUPS_DIR="/path/to/destination/dir" # Where backup files will be saved.
FOO_DIR="/path/to/source/dir" # The directory that should be backed up.
FOO_DATABASE_USER="databaseUser" # The databaase user
FOO_DATABASE_NAME="databaseName" # The database name
FOO_DATABASE_PASSWORD="databasePassword" # The database password
FOO_DATABASE_HOST="localhost" # The database host
FOO_DATABASE_PORT="5432" # The database port
FOO_BACKUPS_AMOUNT=7 # The amount of stored backups
BAR_BACKUPS_DIR="/path/to/destination/dir" # Where backup files will be saved.
BAR_DIR="/path/to/source/dir" # The directory that should be backed up.
BAR_BACKUPS_AMOUNT=7 # The amount of stored backups
# If disk space useage more than 95% then skip backup
BACKUP_DISK_LIMIT=95
# If load average more than 5 then skip backup
BACKUP_LA_LIMIT=5
# If this variable is true, the output of the script will be written to a file
# otherwise it will be printed to the console.
BACKUP_LOG_WRITE=true
# Determine where script log files will be stored
# Default path is ./log
BACKUP_LOG_ROOT_FOLDER='./log'
# The number of month which log files should be stored
BACKUP_LOG_MONTH_AMOUNT=6