15 lines
475 B
Bash
Executable File
15 lines
475 B
Bash
Executable File
#!/bin/bash
|
|
errorExit()
|
|
{
|
|
curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title= etc Backup Error on homeapp2" -F "message=Error on PVE Config Backup Job!!" -F "priority=5"
|
|
exit 1
|
|
}
|
|
|
|
rsync -a -P /etc /mnt/pve/Backup/homeapp2
|
|
if [ $? -eq 0 ]
|
|
then
|
|
curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title=etc Backup Finished on homeapp2" -F "message=Backup Job has finished" -F "priority=5"
|
|
else
|
|
errorExit
|
|
fi
|