mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
add: ths data backup to script
This commit is contained in:
10
backup.sh
10
backup.sh
@@ -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 ..
|
||||
|
||||
Reference in New Issue
Block a user