Skip to content
Snippets Groups Projects
Commit 0c86e7d6 authored by jurgenhaas's avatar jurgenhaas
Browse files

#2 Backup db directly for applications

parent d02554e8
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,15 @@ consistency: ...@@ -30,6 +30,15 @@ consistency:
- repository - repository
- archives - archives
hooks: hooks:
{% if application_id is defined %}
mysql_databases:
- name: '{{ application_id }}'
hostname: db
port: 3306
username: '{{ application_id }}'
password: '{{ application_id }}'
options: '--skip-comments'
{% endif %}
before_backup: before_backup:
- echo "`date` - Starting backup" - echo "`date` - Starting backup"
after_backup: after_backup:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment