X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2f23300adc2b6a6730c3d8eaa1bcc45d95b208e6..7c110b4ca4633db65e1ed117ce20fc150ea68b0e:/cookbooks/community/templates/default/data.yml.erb diff --git a/cookbooks/community/templates/default/data.yml.erb b/cookbooks/community/templates/default/data.yml.erb index f18668e3d..10cc507c9 100644 --- a/cookbooks/community/templates/default/data.yml.erb +++ b/cookbooks/community/templates/default/data.yml.erb @@ -3,7 +3,7 @@ # templates: - - "templates/postgres.template.yml" + - "templates/postgres.13.template.yml" - "templates/redis.template.yml" # any extra arguments for Docker? @@ -42,3 +42,9 @@ hooks: cmd: su - postgres -c 'psql discourse' raise_on_fail: false + - file: + path: /var/spool/cron/crontabs/postgres + contents: | + # m h dom mon dow command + # MAILTO=? + 0 4 * * * /var/lib/postgresql/take-database-backup