Exit codes and post run scripts question


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.


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).


Perfect, thank you for the confirmation!