Skip to content

Commit f6c890f

Browse files
committed
Give mit-backup permission to read MySQL data files
1 parent 64ae4d7 commit f6c890f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ansible/roles/sql-backup-ng/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212
name: mit-backup
1313
system: yes
1414
home: /srv/backup
15+
groups:
16+
- mysql

ansible/roles/sql-mysql/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
content: |
1414
[Service]
1515
LimitNOFILE=32768
16+
Environment="UMASK_DIR=0750" "UMASK=0640"
1617
dest: /etc/systemd/system/mariadb.service.d/99-scripts.conf
1718
register: override
1819
notify: restart mariadb

0 commit comments

Comments
 (0)