contrib: add pure python statefile parser#1789
Conversation
|
Should we anticipate the usage of that decoding for also bareos-sd ? |
|
I haven't tested it, but maybe it just works? |
sebsura
left a comment
There was a problem hiding this comment.
Great work. I found a bug and added some suggestions as well.
It just work when the state file in not empty. So good enough for contrib code. |
|
We should probably write at least one systemtest for this. Nothing major. A simple backup + read state file and check for consistency should be enough. |
But if we do that, then this isn't example-code for contrib anymore. Then we should clean it up, make sure it is portable and put it into the scripts directory. |
201cafe to
14777a6
Compare
This PR adds a python module to read Bareos filedaemon statefiles.
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
Make sure you check/merge the PR using
devtools/pr-toolto have some simple automated checks run and a proper changelog record added.General
Required backport PRs have been createdSource code quality
Required documentation changes are present and part of the PR