Sure thing! I took a stab at it here, starting from your changes: https://projects.torsion.org/witten/borgmatic/pulls/71
2 days ago
Thanks for doing this. A factoring thing though: The logic is getting just sufficiently complex that it'd be nice to do it within a function rather than at global scope. Besides just factoring, that has benefits like making it easier to write automated tests for the logic, which would also be nice in this case.
3 days ago