mailcow: Fix cronjob to run as root & log output

This commit is contained in:
saibotk 2021-03-15 13:09:29 +01:00
parent 3630f2a869
commit 86468728aa
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -27,8 +27,8 @@
cron:
name: "Backup mailcow daily"
minute: "5"
hour: "4"
job: "MAILCOW_BACKUP_LOCATION=/srv/mailcow-backups /srv/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup all --delete-days 5"
hour: "3"
job: "MAILCOW_BACKUP_LOCATION=/srv/mailcow-backups /srv/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup all --delete-days 5 2>&1 | /usr/bin/logger -t mailcow_data_backup"
become: true
# Manual steps:
# - Open ports / disable postfix