diff --git a/NEWS b/NEWS index 25e47c8c..cf50b1bb 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ 2.0.10.dev0 * #942: Factor reference material out of the documentation how-to guides. This means there's now a whole reference section in the docs! Check it out: https://torsion.org/borgmatic/ + * #1150: Fix for a runtime directory error when the "create" action is used with the "--log-json" + flag. * #1161: Fix a traceback (TypeError) in the "check" action with Python 3.14. * Add documentation search. * Change the URL of the local documentation development server to be more like the production URL. diff --git a/borgmatic/borg/create.py b/borgmatic/borg/create.py index 82f13902..a9843df6 100644 --- a/borgmatic/borg/create.py +++ b/borgmatic/borg/create.py @@ -72,7 +72,11 @@ def validate_planned_backup_paths( paths_output = execute_command_and_capture_output( ( *flags.omit_flag_and_value( - flags.omit_flag(create_command, '--exclude-nodump'), '--filter' + flags.omit_flag( + flags.omit_flag(create_command, '--exclude-nodump'), + '--log-json', + ), + '--filter', ), '--dry-run', '--list',