ansible-roles/mysql/tasks/mysql-backup.yml

11 lines
334 B
YAML

---
- name: Install a script that performs mysql dumps
copy: src=mysql-backup.sh dest=/usr/local/bin/mysql-backup owner=root group=root mode=0750
tags:
- mysql
- name: Cron job that executes mysql nightly backups
copy: src=mysql-backup.cron dest=/etc/cron.d/mysql-backup owner=root group=root mode=0644
tags:
- mysql