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

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

parent 096d7429
No related branches found
No related tags found
1 merge request!5Merging develop into main
Pipeline #521791 passed
......@@ -245,9 +245,9 @@ class Handler extends BaseHandler {
$traefik['usessl'] = 1;
$traefik['ports'] = 443;
if ($this->config->readValue(['backup', 'enable'])) {
$cron = $this->config->readValue('cron');
$cron['www-data'][] = '5 0 * * * cd /var/www/html && /usr/local/bin/drush sql:dump --result-file=/var/backups/mysql/drupal.sql';
$this->config->setValue('cron', $cron, FALSE);
$crontabs = $this->config->readValue('crontabs');
$crontabs['www-data'][] = '5 0 * * * cd /var/www/html && /usr/local/bin/drush sql:dump --result-file=/var/backups/mysql/drupal.sql';
$this->config->setValue('crontabs', $crontabs, FALSE);
}
$overwriteConfig = [
'staging' => !in_array(getenv('PROJECT_BRANCH_SANITIZED'), ['master', 'main'], TRUE),
......
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