Exit codes and post run scripts question


#1

I had some questions that I didnt see in the guide.

  1. Do the post run scripts depend or know about the status of the backups? Or does say the post-backup script run regardless of the backup being successful or not with no notification of success or failure?

  2. When running as cron, do the exit codes also reflect true success or failure, eg exit 0 only if all VMs backed up successfully?

My goal/hope is to use healthchecks.io to make sure the cron is running successfully and the backups are completing successfully, but that would mean I need some way of only executing wget when the backup was successful.


#2

The post run script runs only if the backup is successful.

Yes, the exit code will be non-zero if there is an error (regardless of whether it is running in a cron job or a normal script).


#3

Perfect, thank you for the confirmation!