X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/3250441661f92afe3007d3f9a592cbe2b8ca1685..9efaa37d8f7bf4f9a019fc2b6208762b94d4f04c:/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..2aa4de023 100644 --- a/cookbooks/community/templates/default/data.yml.erb +++ b/cookbooks/community/templates/default/data.yml.erb @@ -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