Exit code should be 0 if command succeeds after retry
What I'm trying to do and why
retry_wait settings are great to work around unstable connections.
Only issues is that Borgmatic still exits with code
1, as opposed to
0, even if the final retry succeeds.
Steps to reproduce (if a bug)
- Run some command that fails and later succeeds (by e.g. disconnecting from the internet for a few seconds)
- Borgmatic returns with exit code
1even if the command succeeded after a retry.
Expected behavior (if a bug)
The exit code should be
0 if any retry succeeds.
Other notes / implementation ideas
borgmatic version: 1.5.23
borgmatic installation method: PyPi
Borg version: 1.2.0
Python version: Python 3.9.2
operating system and version: Debian 11
Thanks for this feature. It's something I was missing. Already added it to the template on our setup page and will also add it to the Ansible role. 👍
Deleting a branch is permanent. It CANNOT be undone. Continue?