Skip to content

Commit ccfda12

Browse files
committed
Add debug log about file changed while we backed it up
1 parent c563f42 commit ccfda12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/lib/classes/backup.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,6 +1995,9 @@ protected static function make_web_backup($web_domain, $backup_job)
19951995
$web_path, $backup_repos_path . '::' . $web_backup_archive
19961996
);
19971997
// Exit code 1 means a file changed during backup, not ideal but not a failure either.
1998+
if ($app->system->last_exec_retcode() == 1) {
1999+
$app->log('Backup of web files for domain ' . $web_domain['domain'] . ' using path ' . $web_path . ' mentined file changed while we backed it up.', LOGLEVEL_DEBUG);
2000+
}
19982001
$success = $app->system->last_exec_retcode() == 0 || $app->system->last_exec_retcode() == 1;
19992002
}
20002003

0 commit comments

Comments
 (0)