restore.sh aktualisiert
parent
9de48fa2ae
commit
5812c8a5bb
11
restore.sh
11
restore.sh
|
|
@ -205,6 +205,7 @@ PW_FILE_LOCAL="${KEY_DIR}/password_7z.txt"
|
||||||
if [[ ! -f "$PW_FILE_LOCAL" || ! -s "$PW_FILE_LOCAL" ]]; then
|
if [[ ! -f "$PW_FILE_LOCAL" || ! -s "$PW_FILE_LOCAL" ]]; then
|
||||||
echo " Hole password_7z.txt: root@${PBS_HOST}:/root/Scripte/password_7z.txt"
|
echo " Hole password_7z.txt: root@${PBS_HOST}:/root/Scripte/password_7z.txt"
|
||||||
rsync -az \
|
rsync -az \
|
||||||
|
-e "ssh -o StrictHostKeyChecking=no" \
|
||||||
"root@${PBS_HOST}:/root/Scripte/password_7z.txt" \
|
"root@${PBS_HOST}:/root/Scripte/password_7z.txt" \
|
||||||
"$PW_FILE_LOCAL" \
|
"$PW_FILE_LOCAL" \
|
||||||
2>&1
|
2>&1
|
||||||
|
|
@ -546,12 +547,4 @@ echo " ZIP: $(( ZIP_SIZE_BYTES / 1024 / 1024 )) MB"
|
||||||
echo "============================================================"
|
echo "============================================================"
|
||||||
|
|
||||||
trap - ERR
|
trap - ERR
|
||||||
send_webhook "$STATUS" "$ERROR_MSG"
|
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"}'
|
|
||||||
Loading…
Reference in New Issue