Show the results of configuration file merging #673

Closed
opened 2023-04-10 21:07:36 +00:00 by alsoeric · 4 comments

What I'm trying to do and why

During validation of a Borgmatic configuration file it would be helpful in debugging what is wrong if one could see the results of the merge and if there any errors, the result of the merge up to that error.

Steps to reproduce (if a bug)

Include (sanitized) borgmatic configuration files if applicable.

Actual behavior (if a bug)

Include (sanitized) --verbosity 2 output if applicable.

Expected behavior (if a bug)

Other notes / implementation ideas

Environment

borgmatic version: [version here]

Use sudo borgmatic --version or sudo pip show borgmatic | grep ^Version

borgmatic installation method: [e.g., Debian package, Docker container, etc.]

Borg version: [version here]

Use sudo borg --version

Python version: [version here]

Use python3 --version

Database version (if applicable): [version here]

Use psql --version or mysql --version on client and server.

operating system and version: [OS here]

#### What I'm trying to do and why During validation of a Borgmatic configuration file it would be helpful in debugging what is wrong if one could see the results of the merge and if there any errors, the result of the merge up to that error. #### Steps to reproduce (if a bug) Include (sanitized) borgmatic configuration files if applicable. #### Actual behavior (if a bug) Include (sanitized) `--verbosity 2` output if applicable. #### Expected behavior (if a bug) #### Other notes / implementation ideas #### Environment **borgmatic version:** [version here] Use `sudo borgmatic --version` or `sudo pip show borgmatic | grep ^Version` **borgmatic installation method:** [e.g., Debian package, Docker container, etc.] **Borg version:** [version here] Use `sudo borg --version` **Python version:** [version here] Use `python3 --version` **Database version (if applicable):** [version here] Use `psql --version` or `mysql --version` on client and server. **operating system and version:** [OS here]
Owner

I appreciate you filing this. It seems like a totally reasonable user debugging tool, perhaps as part of the existing validate-borgmatic-config with an additional flag.

I appreciate you filing this. It seems like a totally reasonable user debugging tool, perhaps as part of the existing `validate-borgmatic-config` with an additional flag.
Author

yes. maybe a --verbose or --list

yes. maybe a --verbose or --list
Owner

I went with a --show flag. This is now implemented in master and will be part of the next release. The documentation will be here shortly: https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/#debugging-includes

Thanks again for the idea!

I went with a `--show` flag. This is now implemented in master and will be part of the next release. The documentation will be here shortly: https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/#debugging-includes Thanks again for the idea!
Owner

This has been released as part of borgmatic 1.7.12!

This has been released as part of borgmatic 1.7.12!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#673
No description provided.