make backup rsyncable
This commit is contained in:
parent
f7b667ef53
commit
193fdfc181
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
|||
- name: add backup cronjob for easier backup/restore
|
||||
cron:
|
||||
name: db backup
|
||||
job: '/usr/bin/pg_dumpall | gzip > /opt/postgresbackup/$(date "+\%Y\%m\%d-\%H\%M.sql.gz")'
|
||||
job: '/usr/bin/pg_dumpall | gzip --rsyncable > /opt/postgresbackup/$(date "+\%Y\%m\%d-\%H\%M.sql.gz")'
|
||||
user: postgres
|
||||
hour: "*/4"
|
||||
minute: 45
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue