Skip to content
Snippets Groups Projects
Commit c3c9c984 authored by Till Brehm's avatar Till Brehm
Browse files

Update 500-backup_mail.inc.php Disable quota and ACLS when doing a backup of...

Update 500-backup_mail.inc.php Disable quota and ACLS when doing a backup of mdbox mailboxes with dsnyc
parent 36cdb858
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