File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 5
5
$backupdir,
6
6
$backupdirmode = ' 0700' ,
7
7
$backupdirowner = ' root' ,
8
- $backupdirgroup = ' root ' ,
8
+ $backupdirgroup = $mysql::params::root_group ,
9
9
$backupcompress = true ,
10
10
$backuprotate = 30,
11
11
$ignore_events = true ,
Original file line number Diff line number Diff line change 5
5
$backupdir,
6
6
$backupdirmode = ' 0700' ,
7
7
$backupdirowner = ' root' ,
8
- $backupdirgroup = ' root ' ,
8
+ $backupdirgroup = $mysql::params::root_group ,
9
9
$backupcompress = true ,
10
10
$backuprotate = 30,
11
11
$ignore_events = true ,
46
46
path => ' /usr/local/sbin/mysqlbackup.sh' ,
47
47
mode => ' 0700' ,
48
48
owner => ' root' ,
49
- group => ' root ' ,
49
+ group => $mysql::params::root_group ,
50
50
content => template (' mysql/mysqlbackup.sh.erb' ),
51
51
}
52
52
Original file line number Diff line number Diff line change 6
6
$backupmethod = ' mysqldump' ,
7
7
$backupdirmode = ' 0700' ,
8
8
$backupdirowner = ' root' ,
9
- $backupdirgroup = ' root ' ,
9
+ $backupdirgroup = $mysql::params::root_group ,
10
10
$backupcompress = true ,
11
11
$backuprotate = 30,
12
12
$ignore_events = true ,
Original file line number Diff line number Diff line change
1
+ <%- if @kernel == 'Linux' -%>
1
2
#!/bin/bash
3
+ <%- else -%>
4
+ #!/bin/sh
5
+ <%- end -%>
2
6
#
3
7
# MySQL Backup Script
4
8
# Dumps mysql databases to a file for another backup tool to pick up.
@@ -27,7 +31,9 @@ PATH=<%= @execpath %>
27
31
28
32
29
33
34
+ <%- if @kernel == 'Linux' -%>
30
35
set -o pipefail
36
+ <%- end -%>
31
37
32
38
cleanup()
33
39
{
You can’t perform that action at this time.
0 commit comments