changed cronjob settings
This commit is contained in:
parent
1a73441d47
commit
20ba6f1126
1 changed files with 3 additions and 3 deletions
|
|
@ -49,15 +49,15 @@
|
|||
- name: add backup cronjob for easier backup/restore
|
||||
cron:
|
||||
name: db backup
|
||||
job: '/usr/bin/pg_dumpall | gzip > /opt/postgresbackup/$(date "+%s-%Y%M%d-%H%M.sql.gz")'
|
||||
job: '/usr/bin/pg_dumpall | gzip > /opt/postgresbackup/$(date "+\%Y\%m\%d-\%H\%M.sql.gz")'
|
||||
user: postgres
|
||||
hour: 5,11,17,23
|
||||
hour: */4
|
||||
minute: 45
|
||||
|
||||
- name: add backup cleanup cronjob
|
||||
cron:
|
||||
name: db backup cleanup
|
||||
job: 'find /opt/postgresbackup/* -mtime +9 -type f -exec rm {} \;'
|
||||
job: 'find /opt/postgresbackup/* -mtime +3 -type f -exec rm {} \;'
|
||||
special_time: daily
|
||||
|
||||
- name: flush handlers so postgres is ready before other roles try to use it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue