Custom Script Logs
Logs that contain custom script execution results are stored in the /var/log/nxbackupagent/policy_name/CustomScript directory in the AHV Backup Proxy VM.
Logs of backup jobs are stored in the following directory: /var/log/nxbackupagent/policy_name/.
Also, you can see the logs in the backup job session in the AHV Backup Proxy console.
Defining Error Messages in Custom Script
In a custom script, you can define messages that must be placed in logs upon successful or failed execution of the script.
- You can use the following template to define a message if the custom script execution was successful.
Where 44509 is the identifier of created PD snapshot.
- You can use the following template to define a message if the script execution failed.
{ |
In this case the backup job will fail with an error.
- You can use the following template to define a message if the custom script execution finished with a warning.
{ |
Where 44509 is the identifier of created PD snapshot.