mailcow: Add backup cronjob to playbook

This commit is contained in:
saibotk 2021-01-05 02:48:38 +01:00
parent b315442e84
commit a7352bf9de
No known key found for this signature in database
GPG key ID: A3299C587D5DF523

View file

@ -22,9 +22,13 @@
- docker_compose
environment:
PYTHONPATH: /opt/ansible-dependencies/lib/python2.7/site-packages
tasks:
- name: Install backup crontab
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 8"
# Manual steps:
# Open ports / disable postfix
#
# Install crontab:
# 5 4 * * * MAILCOW_BACKUP_LOCATION=/srv/mailcow-backups /srv/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup all --delete-days 8
# - Open ports / disable postfix