pbsready-export.cfg.in 830 Bytes
Newer Older
1
[buildout]
2

3
extends = ${pbsready:output}
4

5 6
parts +=
  cron-entry-backup
7

8
[resilient-publish-connection-parameter]
9 10 11
notification-id = http://[$${notifier:host}]:$${notifier:port}/get/$${notifier-exporter:name}

[notifier-exporter]
Marco Mariani's avatar
Marco Mariani committed
12 13
# notifier.notify launches an (exporter) executable, and when finished,
# notifies the the pull-backup-servers.
14 15 16 17 18 19 20 21 22
<= notifier
recipe = slapos.cookbook:notifier.notify
name = exporter
title = Dumping $${slap-parameter:namebase}
executable = $${exporter:wrapper}
wrapper = $${rootdirectory:bin}/exporter
notify = $${slap-parameter:notify}

[cron-entry-backup]
Marco Mariani's avatar
Marco Mariani committed
23 24
# Schedule the periodic database dump.
# Through notifications, this triggers (one or more) incremental backups on PBS instances.
25 26 27 28 29
<= cron
recipe = slapos.cookbook:cron.d
name = backup
frequency = 0 * * * *
command = $${notifier-exporter:wrapper}