forked from tecrahul/mydumpadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.conf
105 lines (80 loc) · 3.6 KB
/
settings.conf
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
####################################################################################
####################################################################################
###
#### Author: Nunzio Napolitano
#### Version 1.0
###
####################################################################################
####################################################################################
#VERBOSE mode 0=disable, 1=enable
VERBOSE=1
#DB_TYPE PGSQL=PostgreSQL DB server, MYSQL=MYSQL DB server
DB_TYPE=PGSQL
## Update your mysql credetials in below file
MYSQLCREDENTIAL_FILE="/etc/PGdump/credentials.txt"
##########################################################################
### MYSQL Database Server Details
##########################################################################
MYSQL_HOST="localhost"
MYSQL_PORT="3306"
### MySQL Databases Names to Backup
# Type ALL or specifiy space seprated names. Use one of below settings
DB_NAMES="ALL" ### Backup all user databases
#DB_NAMES="mydb testdb dbname2" ### Backup specified databases only
##########################################################################
### PostgreSQL Database Server Details
##########################################################################
PG_HOST="localhost"
PG_PORT="5432"
DB_NAMES="mydb testdb dbname2" ### Backup specified databases only
##########################################################################
### Local Database Backup Path
##########################################################################
LOCAL_BACKUP_DIR=/etc/PGdump/dbbackup
##########################################################################
### Databases Backup Retention Policy
##########################################################################
##########################################################################
### Enable FTP Backup
##########################################################################
FTP_ENABLE=0 # 0=disable, 1=enable
FTP_SERVER="ftp.tecadmin.net"
FTP_USERNAME="ftp username"
FTP_PASSWORD="secret password"
FTP_UPLOAD_DIR="/backup/dbbackup/"
##########################################################################
### Enable SFTP Backup
##########################################################################
SFTP_ENABLE=0 # 0=disable, 1=enable
SFTP_HOST="sftp.tecadmin.net"
SFTP_USERNAME="sftp/ssh username"
SFTP_PORT="22"
SFTP_UPLOAD_DIR="/backup/dbbackup/"
SCP="/usr/bin/scp"
##########################################################################
### Enable Amazon S3 Backup
##########################################################################
S3_ENABLE=0 # 0=disable, 1=enable
AWS_ACCESS_KEY=""
AWS_SECRET_ACCESS_KEY=""
S3_BUCKET_NAME="mybucket"
S3_UPLOAD_LOCATION="dbbackup/daily" ## Do not use start and end slash
##########################################################################
### Local Executables Path
##########################################################################
GZIP="/bin/gzip"
RM="/bin/rm"
MKDIR="/bin/mkdir"
GREP="/bin/grep"
MYSQL="/usr/bin/mysql"
MYSQLCHECK="/usr/bin/mysqladmin"
MYSQLDUMP="/usr/bin/mysqldump"
PSQL="/usr/bin/psql"
PGCHECK="/usr/bin/pg_isready"
PGDUMP="/usr/bin/pg_dump"
##########################################################################
### Enable Email Alerts
##########################################################################
#SENDEMAIL= ( 0 for not to send email, 1 for send email )
SENDEMAIL=0
EMAILTO='[email protected]'