-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmylvmbackup.conf
126 lines (118 loc) · 2.78 KB
/
mylvmbackup.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
# mylvmbackup configuration file
#
# Every line beginning with a pound sign (#) will be treated as a comment.
# Values should be put right after the equals sign, without whitespace.
# Please refer to the mylvmbackup(1) manual page for more information
#
# These values define how mylvmbackup should connect to the local MySQL server
# Usually host, port and socket path don't need to be provided, if the
# DBD::MySQL Perl module has been compiled with the same values that the local
# MySQL server uses. If a non-empty host name other than "localhost" is
# provided, the socket path is ignored.
#
[mysql]
user=root
password=
host=
port=
socket=
mycnf=/etc/my.cnf
#
# LVM-specific options
#
[lvm]
vgname=mysql
lvname=data
backuplv=
lvsize=5G
#
# File system specific options
#
[fs]
xfs=0
mountdir=/var/tmp/mylvmbackup/mnt/
backupdir=/var/tmp/mylvmbackup/backup/
relpath=
#
# Names of required external utilities
# Make sure the $PATH is set accordingly, especially for cron jobs!
#
[tools]
lvcreate=lvcreate
lvremove=lvremove
lvs=lvs
mount=mount
tar=tar
compress=gzip
# alternative tar backup compression tools
#compress=lzma
#compress=bzip2
# or (for no compression):
#compress=cat
#
rsync=rsync
rsnap=rsnap
umount=umount
[zbackup]
# https://github.com/zbackup/zbackup
zbackup=/usr/bin/zbackup
# --non-encrypted or --password-file /path/to/.pass
zbackuparg=--non-encrypted
# zbackup will use the repo located at $backupdir
# if this dir not a zbackup repo, command '$zbackup $zbackuparg init $backupdir' will be issued
#
# Other configuration options
#
[misc]
backuptype=tar
# number of backups to keep while running purge (0 will keep all backups)
backupretention=0
prefix=backup
suffix=_mysql
tararg=cvf
tarsuffixarg=
tarfilesuffix=.tar.gz
compressarg=--stdout --verbose --best
# for LZMA:
#compressarg=--stdout --verbose -7
# for bzip2:
#compressarg=--stdout --verbose -7
# for cat, simply provide no arguments
#compressarg=
rsyncarg=-avWP
rsnaparg=7
rsnaprsyncarg=
datefmt=%Y%m%d_%H%M%S
innodb_recover=0
recoveryopts=--skip-networking --skip-grant --bootstrap --skip-syslog --skip-slave-start
pidfile=/var/tmp/mylvmbackup_recoverserver.pid
skip_flush_tables=0
extra_flush_tables=0
skip_mycnf=0
hooksdir=/usr/share/mylvmbackup
skip_hooks=0
keep_snapshot=0
keep_mount=0
thin=0
quiet=0
#
# Logging options. The Sys::Syslog module is required for syslog option
# See "perldoc Sys::Syslog" for more information.
#
[logging]
# 'console' (STDOUT, STDERR), 'syslog' or 'both'.
log_method=console
# 'native', 'tcp', 'udp'. Default is 'native'
syslog_socktype=native
syslog_facility=
# If using remote syslog, don't forget to change the socket type to tcp or udp.
syslog_remotehost=
#
# Mail reporting options
#
[reporting]
mail_report_on=never
mail_from=root@localhost
mail_to=root@localhost
mail_subject=mylvmbackup report for localhost