Hello,

I've finally gotten around to an updated version of rdiff-backup where the return codes are all weird.

I have read through the thread: https://lists.nongnu.org/archive/html/rdiff-backup-users/2023-02/msg00034.html

I have to concur that it's very wrong for the rdiff-backup to succeed and return non-zero.

There's an example in the thread above about doing bitwise checks on the return code. That's all fine and dandy, but commands in a POSIX environment must work like this:

commandA && commandB && commandC

Returning non-zero breaks this completely. In some environments (docker) you are required to chain commands like that. Our backup scripts make extensive use of rdiff-backup in the syntax to execute commands over a remote SSH session using a single connection/authentication.

I would like to suggest there needs to be an option to not return >0 on any command that actually succeeds (and it really should be the default, too).

Thanks,
--Pat

Reply via email to