33 lines
829 B
Smarty
33 lines
829 B
Smarty
[[- if ne .pg.backup.pgbackrest.cron.full "" ]]
|
|
---
|
|
kind: cron
|
|
name: pgbackrest-full
|
|
command: ["run-if-master.sh", "pgbackrest", "backup", "--delta", "--type=full"]
|
|
cron: '[[ .pg.backup.pgbackrest.cron.full ]]'
|
|
[[- end ]]
|
|
|
|
[[- if ne .pg.backup.pgbackrest.cron.incr "" ]]
|
|
|
|
---
|
|
kind: cron
|
|
name: pgbackrest-incr
|
|
command: ["run-if-master.sh", "pgbackrest", "backup", "--delta", "--type=incr"]
|
|
cron: '[[ .pg.backup.pgbackrest.cron.incr ]]'
|
|
[[- end ]]
|
|
|
|
[[- if ne .pg.backup.pgbackrest.cron.diff "" ]]
|
|
---
|
|
kind: cron
|
|
name: pgbackrest-diff
|
|
command: ["run-if-master.sh", "pgbackrest", "backup", "--delta", "--type=diff"]
|
|
cron: '[[ .pg.backup.pgbackrest.cron.diff ]]'
|
|
[[- end ]]
|
|
|
|
[[- if ne .pg.backup.dumps.cron "" ]]
|
|
---
|
|
kind: cron
|
|
name: dump
|
|
command: ["run-if-master.sh", "/local/dump.sh"]
|
|
cron: '[[ .pg.backup.dumps.cron ]]'
|
|
[[- end ]]
|