added proxmox local backup

This commit is contained in:
root
2023-02-07 21:36:07 -05:00
parent 575374840b
commit 6890bde89d

14
backup/proxmoxLocalBackup.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/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