Hello,
I would like to make a simple script which check the daily backups and send notification to my home automation system (jeedom)
I've check the below link but a bit complicated
https://github.com/robhost/proxmox-scripts/blob/master/vzdump_hook.sh
I thought to use and browse mailbox after sending email once backup is done but a bit heavy.
I've checked and I should do this:
and add something like :
then
add this entry at the bottom of your config file:
But you know what, it doesn't work
I would like to make a simple script which check the daily backups and send notification to my home automation system (jeedom)
I've check the below link but a bit complicated
https://github.com/robhost/proxmox-scripts/blob/master/vzdump_hook.sh
I thought to use and browse mailbox after sending email once backup is done but a bit heavy.
I've checked and I should do this:
Code:
nano /usr/local/bin/vzdump-hook-script
Code:
#!/bin/bash
if [ "$1" == "job-end" ]; then
curl -X PUT "http://192.168.1.12/core/api/jeeApi.php?plugin=virtual&type=event&apikey=vvvvxcvdffergergetynbersyhe&id=10439&value=1"
fi
exit 0
curl -X PUT "http://192.168.1.12/core/api/jeeApi.php?plugin=virtual&type=event&apikey=vvvvxcvdffergergetynbersyhe&id=10439&value=0"
then
Code:
chmod +x /usr/local/bin/vzdump-hook-script
nano /etc/pve/jobs.cfg
add this entry at the bottom of your config file:
Code:
script /usr/local/bin/vzdump-hook-script
But you know what, it doesn't work