Add fix for failing database hook creating archive to NEWS (#1032).

This commit is contained in:
Dan Helfman
2025-06-25 09:27:38 -07:00
parent 123f8958f6
commit 0cae581014
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
2.0.7.dev0
* #1032: Fix a bug in which a Borg archive gets created even when a database hook fails.
* #1083: Add "debug_passphrase"/"display_passphrase" options and a "{unixtime}" placeholder in
support of Borg 2 features.
* #1099: Clarify documentation on command hooks order of execution.
+4 -4
View File
@@ -74,10 +74,10 @@ def run_create(
)
stream_processes = [process for processes in active_dumps.values() for process in processes]
# If we have stream processes, we first create an archive with .checkpoint suffix.
# This is to make sure we only create a real archive if all the
# streaming processes completed successfully (create_archive will fail
# if a streaming process fails, but the archive might have already been created at this point).
# If we have stream processes, we first create an archive with .checkpoint suffix. This is
# to make sure we only create a real archive if all the streaming processes completed
# successfully (create_archive will fail if a streaming process fails, but the archive might
# have already been created at this point).
use_checkpoint = bool(stream_processes)
json_output = borgmatic.borg.create.create_archive(