Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
832b6ba4
Commit
832b6ba4
authored
Feb 02, 2017
by
Florian Schaal
Browse files
changed loglevel to WARN when mailbackup fails
parent
75c3d472
Changes
1
Show whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/500-backup_mail.inc.php
View file @
832b6ba4
...
@@ -169,7 +169,7 @@ class cronjob_backup_mail extends cronjob {
...
@@ -169,7 +169,7 @@ class cronjob_backup_mail extends cronjob {
if
(
$rec
[
'maildir_format'
]
==
'mdbox'
)
{
if
(
$rec
[
'maildir_format'
]
==
'mdbox'
)
{
if
(
file_exists
(
$rec
[
'maildir'
]
.
'/backup'
))
exec
(
"su -c 'rm -rf "
.
$rec
[
'maildir'
]
.
"/backup'"
);
if
(
file_exists
(
$rec
[
'maildir'
]
.
'/backup'
))
exec
(
"su -c 'rm -rf "
.
$rec
[
'maildir'
]
.
"/backup'"
);
}
}
$app
->
log
(
$mail_backup_file
.
' NOK:'
.
implode
(
''
,
$tmp_output
),
LOGLEVEL_
DEBUG
);
$app
->
log
(
$mail_backup_file
.
' NOK:'
.
implode
(
''
,
$tmp_output
),
LOGLEVEL_
WARN
);
}
}
/* Remove old backups */
/* Remove old backups */
$backup_copies
=
intval
(
$rec
[
'backup_copies'
]);
$backup_copies
=
intval
(
$rec
[
'backup_copies'
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment