restore.sh aktualisiert

main
sebastian.serfling 2026-03-16 14:40:18 +00:00
parent 9de48fa2ae
commit 5812c8a5bb
1 changed files with 2 additions and 9 deletions

View File

@ -205,6 +205,7 @@ PW_FILE_LOCAL="${KEY_DIR}/password_7z.txt"
if [[ ! -f "$PW_FILE_LOCAL" || ! -s "$PW_FILE_LOCAL" ]]; then
echo " Hole password_7z.txt: root@${PBS_HOST}:/root/Scripte/password_7z.txt"
rsync -az \
-e "ssh -o StrictHostKeyChecking=no" \
"root@${PBS_HOST}:/root/Scripte/password_7z.txt" \
"$PW_FILE_LOCAL" \
2>&1
@ -546,12 +547,4 @@ echo " ZIP: $(( ZIP_SIZE_BYTES / 1024 / 1024 )) MB"
echo "============================================================"
trap - ERR
send_webhook "$STATUS" "$ERROR_MSG"
curl -u 'reporting:5xw#HLH5kbMDbxNUUVA6iQcstytm4Ss4g9iGy7ZoLCTDTku6GPcXNHgRfSFgci9R' \
'https://cloudstorage.stines.de/ocs/v2.php/apps/spreed/api/v1/chat/btrv2jb9' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'OCS-APIRequest: true' \
-X POST \
--data-raw '{"message":"$STATUS"}'
send_webhook "$STATUS" "$ERROR_MSG"