File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ class { 'mysql::server': }
76
76
let ( :params ) do
77
77
{
78
78
'file_per_database' => true ,
79
- 'excludedatabases' => [ 'information_schema' ]
79
+ 'excludedatabases' => [ 'information_schema' , 'performance_schema' ]
80
80
} . merge ( default_params )
81
81
end
82
82
83
83
it {
84
84
expect ( subject ) . to contain_file ( 'mysqlbackup.sh' ) . with_content (
85
- %r{information_schema} ,
85
+ %r{information_schema\\ \| performance_schema } ,
86
86
)
87
87
}
88
88
end
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ cleanup
84
84
<% if $excludedatabases.empty { -%>
85
85
mysql --defaults-extra-file=$TMPFILE -s -r -N -e 'SHOW DATABASES' | while read dbname
86
86
<%} else {-%>
87
- mysql --defaults-extra-file=$TMPFILE -s -r -N -e 'SHOW DATABASES' | grep -v '^\(<%= $excludedatabases.join('|') %>\)$' | while read dbname
87
+ mysql --defaults-extra-file=$TMPFILE -s -r -N -e 'SHOW DATABASES' | grep -v '^\(<%= $excludedatabases.join('\\ |') %>\)$' | while read dbname
88
88
<% } -%>
89
89
do
90
90
<%= $backupmethod %> --defaults-extra-file=$TMPFILE --opt --flush-logs --single-transaction \
You can’t perform that action at this time.
0 commit comments