mrmarkuz
(Markus Neuberger)
March 14, 2021, 12:16pm
8
You could try to test the connection with curl:
I finally found the code snippet:
In /usr/libexec/nethserver/api/system-backup/check-s3 the validation is defined.
The check uploads a file and deletes it afterwards. Both is done with curl.
Upload line:
curl -s -X PUT -T "${tmp_file}" -H "Host: ${BUCKET}.${HOST}" -H "Date: ${date}" -H "Content-Type: ${content_type}" -H "Authorization: AWS ${ACCESS_KEY}:${put_signature}" "https://${BUCKET}.${HOST}/${file_to_upload}"
Delete:
curl -s --fail -X DELETE -H "Host: ${BUCKET}.${HOST}" -H "Date: ${…
You may edit /usr/libexec/nethserver/api/system-backup/check-s3
and change curl -s
to curl -v
and run the script manually to see if it produces errors:
/usr/libexec/nethserver/api/system-backup/check-s3 <ACCESS_KEY> <SECRET_KEY> <BUCKET> <HOST>
1 Like