instance-mariadb-pbsready-export.cfg 851 Bytes
Newer Older
1 2 3 4 5
[buildout]
extends = ${template-mariadb-pbsready:output}

parts += cron-entry-mariadb-backup

6 7 8
[urls]
notification-id = http://[$${notifier:host}]:$${notifier:port}/get/$${notifier-mydumper:name}

9 10 11 12 13 14 15 16 17 18
[mydumper]
recipe = slapos.cookbook:mydumper
wrapper = $${rootdirectory:bin}/raw_mydumper
backup-directory = $${directory:mariadb-backup}
socket = $${mariadb:socket}
user = root
mydumper-binary = ${mydumper:location}/bin/mydumper
database = $${mariadb:database}
import = false

19 20 21 22 23 24
[notifier-mydumper]
<= notifier
recipe = slapos.cookbook:notifier.notify
name = mydumper
title = Dumping MariaDB Database
executable = $${mydumper:wrapper}
25
wrapper = $${rootdirectory:bin}/mydumper
26
notify = $${slap-parameter:notify}
27 28 29 30 31 32

[cron-entry-mariadb-backup]
<= cron
recipe = slapos.cookbook:cron.d
name = backup
frequency = 0 * * * *
33
command = $${notifier-mydumper:wrapper}