modified script for backup

This commit is contained in:
2023-10-10 09:58:21 -05:00
parent 97a745a98b
commit d909052a2b
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ if ping -c 1 192.168.1.41 &> /dev/null
--include=/home/*** \ --include=/home/*** \
--include=/root/*** \ --include=/root/*** \
--exclude=* \ --exclude=* \
/ akanealw@192.168.1.41:/mnt/data/backups/debian12devbackup/$(/bin/date +%Y-%m-%d-%I-%M-%S-%p) / akanealw@192.168.1.41:/mnt/data/backups/debian12devbackups/$(/bin/date +%Y-%m-%d-%I-%M-%S-%p)
# curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=up&msg=OK&ping= # curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=up&msg=OK&ping=
else else
# echo "TrueNAS is offline" && curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=down&msg=OK&ping= # echo "TrueNAS is offline" && curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=down&msg=OK&ping=

View File

@@ -17,7 +17,7 @@ if ping -c 1 192.168.1.41 &> /dev/null
--include=/var/lib \ --include=/var/lib \
--include=/var/lib/forgejo/*** \ --include=/var/lib/forgejo/*** \
--exclude=* \ --exclude=* \
/ akanealw@192.168.1.41:/mnt/data/backups/fileserverbackup/$(/bin/date +%Y-%m-%d-%I-%M-%S-%p) / akanealw@192.168.1.41:/mnt/data/backups/fileserverbackups/$(/bin/date +%Y-%m-%d-%I-%M-%S-%p)
curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=up&msg=OK&ping= curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=up&msg=OK&ping=
else else
echo "TrueNAS is offline" && curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=down&msg=OK&ping= echo "TrueNAS is offline" && curl -fsS -m 10 --retry 5 -o /dev/null https://uptimekuma.akanealw.com/api/push/OtvHGEeMxL?status=down&msg=OK&ping=