In order to troubleshoot scripts, you need to connect to the CPM instance over SSH (using user "cpmuser") and execute the scripts from command line. Please do not use "su" or "sudo", as CPM doesn't elevate permissions.
If when you run the script you are asked to approve the SSH key - please answer "yes".
This means that you tried to use a script without approving the SSH key first - which would cause an immediate failure.
After approving the key, please try running the policy again.
If you are seeing these errors in the Backup Log:
Error - Could not find script "before_PolicyName", will continue without backup scripts
Error - Could not find script "after_PolicyName", will continue without backup scripts
Error - Could not find script "complete_PolicyName", will continue without backup scripts
the most common cause is that the policy belongs to a non-root user, and the scripts weren't placed in the subdirectory "cpmdata\scripts\username"
If the script runs fine over SSH, but fails in CPM - this is likely caused by using relative paths in your script.
Please use absolute paths instead.