diff --git a/pillar/top.sls b/pillar/top.sls index f206710..053236e 100644 --- a/pillar/top.sls +++ b/pillar/top.sls @@ -10,4 +10,5 @@ base: - secrets/mailman - secrets/smtpauth - secrets/webmail + - secrets/mariadb - secrets/dmarcts diff --git a/states/backup/scabbers_backup2l.conf b/states/backup/scabbers_backup2l.conf index f610c88..228f80c 100644 --- a/states/backup/scabbers_backup2l.conf +++ b/states/backup/scabbers_backup2l.conf @@ -99,6 +99,8 @@ PRE_BACKUP () # all installed packages to a file. #echo " writing dpkg selections to /root/dpkg-selections.log..." #dpkg --get-selections | diff - /root/dpkg-selections.log > /dev/null || dpkg --get-selections > /root/dpkg-selections.log + + mysqldump --all-databases > /root/mysql.sql } # This user-defined bash function is executed after a backup is made diff --git a/states/top.sls b/states/top.sls index d4327ff..d1e8b88 100644 --- a/states/top.sls +++ b/states/top.sls @@ -35,4 +35,5 @@ base: - mailman - mercurial - webmail + - mariadb - dmarc_reports