-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.backup_db.conf
More file actions
62 lines (51 loc) · 2.19 KB
/
app.backup_db.conf
File metadata and controls
62 lines (51 loc) · 2.19 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
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
60
61
62
# -------------------------------------------------------------------------------------------------------------------- #
# BACKUP
# -------------------------------------------------------------------------------------------------------------------- #
DB_SRC=(
'mongo.DB_1'
'mongo.DB_2'
'mysql.DB_1'
'mysql.DB_2'
'pgsql.DB_1'
'pgsql.DB_2'
)
DB_USER='backup'
DB_PASS='PASSWORD'
FS_DST='/tmp/backup_db'
FS_TPL="$( date -u '+%Y' )/$( date -u '+%m' )/$( date -u '+%d' )-$( date -u '+%H' )"
# -------------------------------------------------------------------------------------------------------------------- #
# ENCRYPTION
# -------------------------------------------------------------------------------------------------------------------- #
ENC_ON=0
ENC_APP='gpg'
ENC_PASS='SECRET'
# -------------------------------------------------------------------------------------------------------------------- #
# REMOTE: SSH FS
# -------------------------------------------------------------------------------------------------------------------- #
SSH_ON=0
SSH_HOST='192.168.1.2'
SSH_USER='root'
SSH_PASS='PASSWORD'
SSH_DST='/remote/directory'
SSH_MNT='/mnt/backup_db'
# -------------------------------------------------------------------------------------------------------------------- #
# REMOTE: RSYNC
# -------------------------------------------------------------------------------------------------------------------- #
RSYNC_ON=0
RSYNC_HOST='192.168.1.2'
RSYNC_USER='root'
RSYNC_PASS='PASSWORD'
RSYNC_DST='/remote/directory'
# -------------------------------------------------------------------------------------------------------------------- #
# NOTIFICATIONS: MAIL
# -------------------------------------------------------------------------------------------------------------------- #
MAIL_ON=0
MAIL_FROM='postmaster@example.org'
MAIL_TO=('mail@example.org')
# -------------------------------------------------------------------------------------------------------------------- #
# NOTIFICATIONS: GITLAB
# -------------------------------------------------------------------------------------------------------------------- #
GITLAB_ON=0
GITLAB_API='http://example.org/api/v4'
GITLAB_PROJECT='0'
GITLAB_TOKEN='TOKEN'