mailcow: Add backup cronjob to playbook
This commit is contained in:
parent
b315442e84
commit
a7352bf9de
1 changed files with 8 additions and 4 deletions
12
mailcow.yml
12
mailcow.yml
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue