Skip to content
Snippets Groups Projects
Commit 6c22ede4 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch '6190-mail-quota-doesn-t-update-on-backup-deletion' into 'develop'

Resolve "Mail Quota doesn't update on backup deletion"

Closes #6190

See merge request ispconfig/ispconfig3!1491
parents 3db98ba4 c3c9c984
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ class cronjob_backup_mail extends cronjob { ...@@ -126,7 +126,7 @@ class cronjob_backup_mail extends cronjob {
if ($rec['maildir_format'] == 'mdbox') { if ($rec['maildir_format'] == 'mdbox') {
if (empty($this->tmp_backup_dir)) $this->tmp_backup_dir = $rec['maildir']; if (empty($this->tmp_backup_dir)) $this->tmp_backup_dir = $rec['maildir'];
// Create temporary backup-mailbox // Create temporary backup-mailbox
$app->system->exec_safe("su -c ?", 'dsync backup -u "'.$rec["email"].'" mdbox:' . $this->tmp_backup_dir . '/backup'); $app->system->exec_safe("su -c ?", 'dsync backup -o plugin/acl= -o plugin/quota= -u "'.$rec["email"].'" mdbox:' . $this->tmp_backup_dir . '/backup');
if($backup_mode == 'userzip') { if($backup_mode == 'userzip') {
$mail_backup_file.='.zip'; $mail_backup_file.='.zip';
......
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