|
10 | 10 | # backuppassword => 'mypassword',
|
11 | 11 | # backupdir => '/tmp/backups',
|
12 | 12 | # }
|
| 13 | +# class { 'mysql::server::backup': |
| 14 | +# backupmethod => 'mariabackup', |
| 15 | +# provider => 'xtrabackup', |
| 16 | +# backupdir => '/tmp/backups', |
| 17 | +# } |
13 | 18 | #
|
14 | 19 | # @param backupuser
|
15 | 20 | # MySQL user with backup administrator privileges.
|
|
25 | 30 | # Group owner for the backup directory. This parameter is passed directly to the file resource.
|
26 | 31 | # @param backupcompress
|
27 | 32 | # Whether or not to compress the backup (when using the mysqldump provider)
|
| 33 | +# @param backupmethod |
| 34 | +# The execution binary for backing up. ex. mysqldump, xtrabackup, mariabackup |
28 | 35 | # @param backuprotate
|
29 | 36 | # Backup rotation interval in 24 hour periods.
|
30 | 37 | # @param ignore_events
|
|
64 | 71 | $backupdirgroup = 'root',
|
65 | 72 | $backupcompress = true,
|
66 | 73 | $backuprotate = 30,
|
| 74 | + $backupmethod = undef, |
67 | 75 | $ignore_events = true,
|
68 | 76 | $delete_before_dump = false,
|
69 | 77 | $backupdatabases = [],
|
|
95 | 103 | 'backupdirgroup' => $backupdirgroup,
|
96 | 104 | 'backupcompress' => $backupcompress,
|
97 | 105 | 'backuprotate' => $backuprotate,
|
| 106 | + 'backupmethod' => $backupmethod, |
98 | 107 | 'ignore_events' => $ignore_events,
|
99 | 108 | 'delete_before_dump' => $delete_before_dump,
|
100 | 109 | 'backupdatabases' => $backupdatabases,
|
|
0 commit comments