Backupninja reports success even with script exitcode>0
Hi,
we have a bash script and want backupninja NOT to report success when the script fails. I wrote a simple test scipt to point out:
# cat /etc/backup.d/99_test.sh #!/bin/sh echo "test.sh: Exiting with exit code 1" exit 1 # backupninja --now --debug --run /etc/backup.d/99_test.sh Debug: check_perms /etc/backup.d Debug: perms: drwxr-x--- Debug: gperm: r-x Debug: wperm: --- Debug: check_perms /etc/backup.d/99_test.sh Debug: perms: -rwx------ Debug: gperm: --- Debug: wperm: --- Info: >>>> starting action /etc/backup.d/99_test.sh (because of --now) Debug: yes test.sh: Exiting with exit code 1 Info: <<<< finished action /etc/backup.d/99_test.sh: SUCCESS Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning.
backupninja is 0.9.8.1-1 on debian squeeze
(from redmine: created on 2011-07-21, closed on 2011-07-24)