File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5353# @param maxallowedpacket
5454# Defines the maximum SQL statement size for the backup dump script. The default value is 1MB, as this is the default MySQL Server value.
5555# @param optional_args
56- # Specifies an array of optional arguments which should be passed through to the backup tool. (Currently only supported by the xtrabackup provider .)
56+ # Specifies an array of optional arguments which should be passed through to the backup tool. (Supported by the xtrabackup and mysqldump providers .)
5757#
5858class mysql::server::backup (
5959 $backupuser = undef ,
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ echo "[client]\npassword=$PASS\nuser=$USER\nmax_allowed_packet=$MAX_ALLOWED_PACK
2828echo -e "[client]\npassword=$PASS\nuser=$USER\nmax_allowed_packet=$MAX_ALLOWED_PACKET" > $TMPFILE
2929<%- end -%>
3030
31+ <% if @prescript -%>
32+ <%- [ @prescript ] . flatten . compact . each do |script |%>
33+ <%= script %>
34+ <%- end -%>
35+ <% end -%>
3136
3237# Ensure backup directory exist.
3338mkdir -p $DIR
You can’t perform that action at this time.
0 commit comments