Skip to content

Commit c563f42

Browse files
committed
Allow exit code 1 from borg(files changed while backing up), #6776
1 parent c910fa2 commit c563f42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/lib/classes/backup.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,8 @@ protected static function make_web_backup($web_domain, $backup_job)
19941994
'cd ? && ' . $command . ' ' . $command_opts . ' ' . $excludes . ' ? .',
19951995
$web_path, $backup_repos_path . '::' . $web_backup_archive
19961996
);
1997-
$success = $app->system->last_exec_retcode() == 0;
1997+
// Exit code 1 means a file changed during backup, not ideal but not a failure either.
1998+
$success = $app->system->last_exec_retcode() == 0 || $app->system->last_exec_retcode() == 1;
19981999
}
19992000

20002001
if ($success) {

0 commit comments

Comments
 (0)