Skip to content
Snippets Groups Projects
Commit 343078ac authored by jurgenhaas's avatar jurgenhaas
Browse files

mobimo/support#2982 Re-configure mysql backup destination and add cron tab

parent aa68d65b
No related branches found
No related tags found
1 merge request!3Merging develop into main
Pipeline #521729 passed
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
...@@ -155,7 +155,9 @@ class Handler extends BaseHandler { ...@@ -155,7 +155,9 @@ class Handler extends BaseHandler {
], ],
'backstop' => $this->backstopDefaults(), 'backstop' => $this->backstopDefaults(),
'crontabs' => [ 'crontabs' => [
'www-data' => [], 'www-data' => [
'5,35 * * * * cd /var/www/html && /usr/local/bin/drush sql:dump --result-file=/var/backups/mysql/drupal.sql',
],
], ],
'backup' => [ 'backup' => [
'enable' => FALSE, 'enable' => FALSE,
...@@ -253,7 +255,7 @@ class Handler extends BaseHandler { ...@@ -253,7 +255,7 @@ class Handler extends BaseHandler {
'drupal' => $drupal, 'drupal' => $drupal,
'traefik' => $traefik, 'traefik' => $traefik,
'projectroot' => $root . '/app', 'projectroot' => $root . '/app',
'projectrootbackup' => $root . '/backup', 'projectrootbackup' => $root . '/files/db',
'projectrootdb' => $root . '/db', 'projectrootdb' => $root . '/db',
'projectrootfiles' => $root . '/files', 'projectrootfiles' => $root . '/files',
'projectrootredis' => $root . '/redis', 'projectrootredis' => $root . '/redis',
......
...@@ -126,6 +126,9 @@ services: ...@@ -126,6 +126,9 @@ services:
- {{ projectroot }}/crontabs:/etc/crontabs - {{ projectroot }}/crontabs:/etc/crontabs
{% if php.ssh and not drupal.live|default(0) %} {% if php.ssh and not drupal.live|default(0) %}
- {{ php.ssh_auth_sock }}:/ssh-agent - {{ php.ssh_auth_sock }}:/ssh-agent
{% endif %}
{% if backup.enable|default(0) %}
- {{ projectrootbackup }}:/var/backups/mysql
{% endif %} {% endif %}
extra_hosts: extra_hosts:
- '{{ projectdomain }}:{{ docker0.ip }}' - '{{ projectdomain }}:{{ docker0.ip }}'
......
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