Added Photo Backup script

This commit is contained in:
2023-01-11 10:32:04 -05:00
parent e27734c3c6
commit cc00f61fa3

View File

@@ -0,0 +1,14 @@
#!/bin/bash
errorExit()
{
curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title=Photo Backup Error on jerickserver" -F "message=Error$
exit 1
}
rclone copy /mnt/pve/NFSFolder/AppData/Immich jerickserver:jerickserver
if [ $? -eq 0 ]
then
curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title=Photo Backup Finished on jerickserver" -F "message=Ba$
else
errorExit
fi