Skip to content

Commit

Permalink
cleanup old examples and veeam URL issue (#11)
Browse files Browse the repository at this point in the history
- Remove old examples
- Fix veeam URLs (how did proofpoint get in here?!?)
  • Loading branch information
JonKohler authored Nov 2, 2023
1 parent 4aa7891 commit e26570c
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 4,528 deletions.
6 changes: 3 additions & 3 deletions backup/3rd-party-backup-references/veeam.sh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ veeamPassword="EMPassword"
veeamAuth=$(echo -ne "$veeamUsername:$veeamPassword" | base64);
veeamRestServer="EMServer" #IP Address or FQDN of Enterprise Manager server
veeamRestPort="9398"
veeamSessionId=$(curl -X POST "https://urldefense.proofpoint.com/v2/url?u=https-3A__-24veeamRestServer-3A-24veeamRestPort_api_sessionMngr_-3Fv-3Dlatest&d=DwIGaQ&c=s883GpUCOChKOHiocYtGcg&r=NGPRGGo37mQiSXgHKm5rCQ&m=IjcOYjJJ1oHyM4upMR7wUN9ZzfI77-WNoaPWHeY0bro4rutwwViyJmBFTFnsmqV-&s=36GxUaHu0153-XrTQfWo-fKGCG4IajotneHn2KZfC9g&e= " -H "Authorization:Basic $veeamAuth" -H "Content-Length: 0" -H "Accept: application/json" -k -v | awk 'NR==1{sub(/^\xef\xbb\xbf/,"")}1' | jq --raw-output ".SessionId")
veeamSessionId=$(curl -X POST "https://$veeamRestServer:$veeamRestPort/api/sessionMngr/?v=latest" -H "Authorization:Basic $veeamAuth" -H "Content-Length: 0" -H "Accept: application/json" -k -v | awk 'NR==1{sub(/^\xef\xbb\xbf/,"")}1' | jq --raw-output ".SessionId")
veeamXRestSvcSessionId=$(echo -ne "$veeamSessionId" | base64);
veeamJobId="763797f3-391c-46c8-aa81-83d04f534396"

# Query Job
veeamEMJobUrl="https://urldefense.proofpoint.com/v2/url?u=https-3A__-24veeamRestServer-3A-24veeamRestPort_api_nas_jobs_-24veeamJobId-3Fformat-3DEntity&d=DwIGaQ&c=s883GpUCOChKOHiocYtGcg&r=NGPRGGo37mQiSXgHKm5rCQ&m=IjcOYjJJ1oHyM4upMR7wUN9ZzfI77-WNoaPWHeY0bro4rutwwViyJmBFTFnsmqV-&s=71SvQQJ0lNYM1bQbPlxmFTG3IOFjNMrbPs97ztlpURg&e= "
veeamEMJobUrl="https://$veeamRestServer:$veeamRestPort/api/nas/jobs/$veeamJobId?format=Entity"
veeamEMJobDetailUrl=$(curl -X GET "$veeamEMJobUrl" -H "Accept:application/json" -H "X-RestSvcSessionId: $veeamXRestSvcSessionId" -H "Cookie: X-RestSvcSessionId=$veeamXRestSvcSessionId" -H "Content-Length: 0" -k -v | awk 'NR==1{sub(/^\xef\xbb\xbf/,"")}1')

# Start Job
veeamEMStartUrl="https://urldefense.proofpoint.com/v2/url?u=https-3A__-24veeamRestServer-3A-24veeamRestPort_api_nas_jobs_-24veeamJobId_start&d=DwIGaQ&c=s883GpUCOChKOHiocYtGcg&r=NGPRGGo37mQiSXgHKm5rCQ&m=IjcOYjJJ1oHyM4upMR7wUN9ZzfI77-WNoaPWHeY0bro4rutwwViyJmBFTFnsmqV-&s=_QapUxC6KxbHS1teM8YypJRX8ZURLqdgW6Tgop3ViYo&e= "
veeamEMStartUrl="https://$veeamRestServer:$veeamRestPort/api/nas/jobs/$veeamJobId/start"
veeamEMResultUrl=$(curl -X POST "$veeamEMStartUrl" -H "Accept:application/json" -H "X-RestSvcSessionId: $veeamXRestSvcSessionId" -H "Cookie: X-RestSvcSessionId=$veeamXRestSvcSessionId" -H "Content-Length: 0" -k -v | awk 'NR==1{sub(/^\xef\xbb\xbf/,"")}1')

# Capture & Display Results
Expand Down
91 changes: 0 additions & 91 deletions backup/nonprd/backup--veeam-tst.sh

This file was deleted.

Loading

0 comments on commit e26570c

Please sign in to comment.