From 068a1e2d75673844f3a4614184973c577cab5075 Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 12 Sep 2025 11:29:33 +0200 Subject: [PATCH] CLI: Flush stdout buffer after dump command --- npbackup/restic_wrapper/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/npbackup/restic_wrapper/__init__.py b/npbackup/restic_wrapper/__init__.py index 04e9c96..6a5f48a 100644 --- a/npbackup/restic_wrapper/__init__.py +++ b/npbackup/restic_wrapper/__init__.py @@ -7,7 +7,7 @@ __intname__ = "npbackup.restic_wrapper" __author__ = "Orsiris de Jong" __copyright__ = "Copyright (C) 2022-2025 NetInvent" __license__ = "GPL-3.0-only" -__build__ = "2025090901" +__build__ = "2025091201" __version__ = "2.7.3" @@ -1382,6 +1382,8 @@ class ResticRunner: # We need to write binary data directly to stdout on success # Dump should only be used by CLI sys.stdout.buffer.write(output) + # Also make sure we flush said buffer + sys.stdout.buffer.flush() msg = f"File {path} successfully dumped" else: msg = f"Cannot dump file {path}:\n {output}"