added rsync windows images script
This commit is contained in:
10
fileserver/root/rsync-backup-windows-images.sh
Normal file
10
fileserver/root/rsync-backup-windows-images.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ping -c 1 192.168.1.41 &> /dev/null
|
||||||
|
then
|
||||||
|
rsync -azvP -e "ssh -i ~/.ssh/truenas" --progress \
|
||||||
|
/home/akanealw/gitrepos/windows-images akanealw@192.168.1.41:/mnt/data/backups/fileserverbackup/windows-images
|
||||||
|
curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/bhaIIu2myn?status=up&msg=OK&ping=
|
||||||
|
else
|
||||||
|
echo "TrueNAS is offline" && curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/bhaIIu2myn?status=down&msg=OK&ping=
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user