Hello!
I’m struggling to understand, is there a way to automate file transfer from a local machine to remote geoserver using curl or anything else (other than manually copy-paste to server’s file system)?
The goal is to take a local geotiff (I get new files every day) and transfer it to the image mosaic directory inside the remote geoserver instance so I could harvest new granules using curl command.
I tried to «upload resource» using this command:
curl -u login:pw -XPUT -H “Content-type:application/zip” @20220701.zip {host}/geoserver/rest/resource/coverages/test_data
but it returns 405 informing that I’m attempting to write data to a directory…well, that’s what I’m trying to achieve but apparently using the wrong way.
P.S. I guess packing tif into zip was a mistake but don’t really know what content-type to use for it.
–
Sincerely,
Yaras