-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlvm-snapshot-backup-wrapper.cfg.sh
57 lines (44 loc) · 1.73 KB
/
lvm-snapshot-backup-wrapper.cfg.sh
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
## vim:ts=4:sw=4:tw=200:nu:ai:nowrap:
##
## application config for lvm-snapshot-backup-wrapper
##
## Created by Wolfram Schlich <wschlich@gentoo.org>
## Licensed under the GNU GPLv3
## Web: http://www.bashinator.org/projects/lvm-snapshot-backup-wrapper/
## Code: https://github.com/wschlich/lvm-snapshot-backup-wrapper/
##
##
## application settings
##
## directory under which the system mirror is being mounted
export SystemMirrorMountDirectory="/mnt/sysmirror"
## -- lvm-snaptool settings --
## path to lvm-snaptool
export LvmSnapTool="/usr/sbin/lvm-snaptool.sh"
## arguments for system mirror create/delete
export LvmSnapToolSystemMirrorCreateArgs=""
export LvmSnapToolSystemMirrorDeleteArgs=""
## example arguments:
## - specify snapshot volume size factor:
## - default: 0.2
## - for LV vgs/lvhome: 0.3
## - for LV vgs/lvusr: 0.1
## - exclude LV vgs/lvtmp
#export LvmSnapToolSystemMirrorCreateArgs="-f 0.2,vgs/lvhome:0.3,vgs/lvusr:0.1 -e vgs/lvtmp"
## custom pre/post commands
export SystemMirrorCreatePreExecCommand=
export SystemMirrorCreatePostExecCommand=
export SystemMirrorDeletePreExecCommand=
export SystemMirrorDeletePostExecCommand=
## example pre/post commands for mysql backup:
#export SystemMirrorCreatePreExecCommand="/local/adm/mysql-backup/mysql-backup-split.sh -d /local/backup/mysql/sysmirror -r -A -T -c"
#export SystemMirrorDeletePostExecCommand="rm -rf /local/backup/mysql/sysmirror"
## -- rdiff-backup settings --
## absolute path to rdiff-backup
export RdiffBackup="/usr/bin/rdiff-backup"
## -- rsnapshot settings (uses rsync) --
## absolute path to rsync
export Rsync="/usr/bin/rsync"
## arguments for rsync
## set these to match the rsync arguments in your rsnapshot.conf
export RsyncArgs="-vlogDtpAXrRSe.iLs --numeric-ids"