Understanding kopia actions

Hello,

I created an “After Snapshot” script to ping healthchecks.io when the backup finished.
Will this script also run when the snapshot failed?
What is the “After Snapshot Command Mode” for?
And what is the difference between after snapshot and after folder?

Thanks in advance :slight_smile:

#!/bin/bash
while getopts u: flag
do
case "${flag}" in
    u) uuid=${OPTARG};;
esac
done

/usr/bin/curl -fsS --retry 3 https://hc-ping.com/$uuid
exit 0