nodes/htz-cloud.sewfile: also backup mysql database
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
39c1d34bbb
commit
0ca57e8e24
1 changed files with 11 additions and 0 deletions
|
@ -23,6 +23,17 @@ nodes['htz-cloud.sewfile'] = {
|
|||
'backups': {
|
||||
'paths': {
|
||||
'/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': {
|
||||
|
|
Loading…
Reference in a new issue