Hello!
Firstly, thank you for this great and robust backup tool!
However, i wonder how backup2l defines its exit code and if it is possible to modify that exit code inside the pre- and post-backup routines.
The reason that let me ask this is, that commonly (as i understood) people put a line to their crontab line to let backup2l execute scheduled.
Since cron mails every output to the user of the crontab (root for example), i will get a mail once a day. However, i prefer to get mail only if something needs my attention. This could be achieved by piping the output to some logfile and doing an echo in case of error like this:
backup2l >> /var/log/backup2l.log || echo "BACKUP ERROR, check logfile!"
Thanks for your hint,
with best regards, beni