TypeError traceback with borgmatic create --json and database configured #563
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#563
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Use the
borgmatic create --json
flag when a database happens to be configured for dumping, so I can use the JSON output from the backup in a downstream tool.Steps to reproduce
borgmatic create -c test.yaml -v 2 --json
Actual behavior
Expected behavior
No traceback. Logging is suppressed at the console and only JSON output is produced.
Other notes / implementation ideas
execute_command_with_processes()
probably needs a special case for whenoutput_log_level
is None (which is set when--json
is used) similar toexecute_command()
's existing case.Original PR: https://github.com/borgmatic-collective/borgmatic/pull/47
Environment
borgmatic version: 1.6.5 / master
borgmatic installation method: pip
Borg version: 1.2.1
Python version: 3.10.5
Database version (if applicable): PostgreSQL 14.4, but occurs on MySQL as well.
operating system and version: Manjaro stable
This has been fixed in master. With the fix in place, you can get JSON output even when a database is configured for dumping. This will be part of the next release!
Wow thanks you very much! What speed !
This has been released in borgmatic 1.6.6!
It works perfectly thank you again 👍