add: ths data backup to script

This commit is contained in:
root
2023-03-06 16:10:54 +01:00
parent 6258792074
commit 3c96c16578

View File

@@ -36,4 +36,12 @@ rm ${TARGET}rsync-*
cp ~/athq-vm-management/build/backup/* $TARGET
cd $TARGET
pwd
./wrapper.sh $1
./wrapper.sh nohighdata
# do the THS backup
cd /media/root/bd358053-84a3-498c-9109-cc4f4d5c10d8/sheppy/ths-data/
./rsync_backup.sh
if [ $? -eq 0 ]; then
curl -H "Content-Type: application/json" -X POST https://async-icinga.atlantishq.de/ -d '{"service": "backup_ths_offline_storrage_box", "token": "ioQERjE3d3", "status": "OK", "info": ""}'
fi
cd ..