forked from bstillman/bgbackup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbgbackup.cnf.dist
145 lines (101 loc) · 3.4 KB
/
bgbackup.cnf.dist
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
############################################
# bgbackup configuration file
# Check for Percona backup history records to migrate?
# If yes, be warned that backups which meet the current
# delete threshold will be deleted. Backups which have
# already been deleted will be marked with deleted_at
# as today's date.
checkmigrate=no
# MariaDB host (optional)
#host=127.0.0.1
# MariaDB host port (optional)
#hostport=3306
# MySQL socket
# socket=/var/lib/mysql/mysql.sock
# MariaDB backup username
backupuser=testuser
# MariaDB backup user password
backuppass=testpass
# MariaDB host for backup history
backuphisthost=localhost
# MariaDB port for backup history
#backuphistport=3306
# MariaDB user for backup history
backuphistuser=mariadbbackup
# MariaDB password for backup history
backuphistpass=testpass
# MariaDB schema for backup history
backuphistschema=mdbutil
# If server is monitored by MONyog, should we disable alerts?
monyog=no
# The name of the server being backed up as setup in MONyog
monyogserver=
# MONyog username
monyoguser=
# MONyog password
monyogpass=
# MONyog host/ip
monyoghost=
# MONyog port
monyogport=
# Day of week to do full backup. Set to "Everyday" to do full backup everyday (subsequent daily backups will be incremental)
fullbackday=Everyday
# Differential does incremental backup based on the last full backup instead of last full or incremental
differential=no
# Number of full backups to keep
keepnum=3
# Number of backup table backups to keep.
keepbkuptblnum=1
# Full path to backup directory root
backupdir=/backups
# Path to keep logs
logpath=/var/log
# Log verbosity
verbose=no
# Log to syslog
syslog=no
# Backup type (directory or archive)
bktype=directory
# Archive type (tar or xbstream) for archive backup type
# arctype=tar
# Used for parallel and compress
threads=4
# Use parallel threads for backup?
parallel=yes
# Encrypt backup?
encrypt=yes
# Full path to encryption key
cryptkey=/etc/my.cnf.d/backupscript.key
# Compress backup?
compress=yes
# Compression utility used for archives, for now gzip or pigz (parallel gzip) are supported
# For standalone directories, qpress is always used
computil=gzip
# By default, xtrabackup will lock all tables to create a consistent backup of non-transactional
# tables. Enabled nolock to disable this behaviour.
# WARNING: Only disable locking if you do not have or do not care about your non-transactional tables.
nolock=no
# Include Galera info and enable wsrep_desync to avoid flow control during backup.
# When the backup is finished, wait for wsrep_local_recv_queue to drop to 0 before
# disabling wsrep_desync.
galera=no
# Include slave info?
# WARNING: If slave info is included and nolock is enabled, bgbackup will enable safe-slave-backup.
# (safe slave backups will temporarily pause replication. Please inspect the documentation if your application cannot handle stale reads.)
slave=no
# Comma separated list of email address to be notified.
# Email subject prefix
mailsubpre="[BGBackup]"
# Email (all or failure)
mailon=all
# Run command(s) after backup, for example: run_on_success=/usr/local/bin/success.sh
# (leave empty if you do not want to run anything)
# If backup succedded
run_after_success=
# If backup failed
run_after_fail=
# Debug prints all variables to the commandline when script is ran.
# This can be a security risk. Set to yes to enable.
debug=no
############################################