Merge remote-tracking branch 'origin/erp5-luke' into erp5
[slapos.git] / stack / lamp / instance-mariadb-pbsready-export.cfg
1 [buildout]
2 extends = ${template-mariadb-pbsready:output}
3
4 parts += cron-entry-mariadb-backup
5
6 [urls]
7 notification-id = http://[$${notifier:host}]:$${notifier:port}/get/$${notifier-mydumper:name}
8
9 [mydumper]
10 recipe = slapos.cookbook:mydumper
11 wrapper = $${rootdirectory:bin}/raw_mydumper
12 backup-directory = $${directory:mariadb-backup}
13 socket = $${mariadb:socket}
14 user = root
15 mydumper-binary = ${mydumper:location}/bin/mydumper
16 database = $${mariadb:database}
17 import = false
18
19 [notifier-mydumper]
20 <= notifier
21 recipe = slapos.cookbook:notifier.notify
22 name = mydumper
23 title = Dumping MariaDB Database
24 executable = $${mydumper:wrapper}
25 wrapper = $${rootdirectory:bin}/mydumper
26 notify = $${slap-parameter:notify}
27
28 [cron-entry-mariadb-backup]
29 <= cron
30 recipe = slapos.cookbook:cron.d
31 name = backup
32 frequency = 0 * * * *
33 command = $${notifier-mydumper:wrapper}