nodes/htz-cloud.sewfile: also backup mysql database
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-03-27 13:49:23 +01:00
parent 39c1d34bbb
commit 0ca57e8e24
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -23,6 +23,17 @@ nodes['htz-cloud.sewfile'] = {
'backups': { 'backups': {
'paths': { 'paths': {
'/mnt/seafile-data', '/mnt/seafile-data',
'/var/tmp/mysqldumps',
},
},
'backup-client': {
'pre-hooks': {
'mysqldump': \
'test -d /var/tmp/mysqldumps || mkdir -p /var/tmp/mysqldumps\n'\
'rm /var/tmp/mysqldumps/*.sql\n'\
'mysqldump --databases ccnet_db > /var/tmp/mysqldumps/ccnet_db.sql\n'\
'mysqldump --databases seafile_db > /var/tmp/mysqldumps/seafile_db.sql\n'\
'mysqldump --databases seahub_db > /var/tmp/mysqldumps/seahub_db.sql\n',
}, },
}, },
'icinga_options': { 'icinga_options': {