Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the sequence of this:

How to upload a shapefile to geoserver using cURL?

which was properly solved, I now need to be able to replace the existing file, cause my process is to be repeated every day.

Any clues?

share|improve this question
How many files do you need to upload at any given day btw? – R.K. Nov 27 '12 at 14:45
My process generates only one shp file a day, which I need to put on geoserver. – vascobnunes Nov 27 '12 at 14:46
The same shapefile? I mean, you'll be overwriting the old one or will you be generating new ones with different file names? – R.K. Nov 27 '12 at 14:49
I'll be overwriting the old one. – vascobnunes Nov 27 '12 at 14:58

While there is no 'replace' operation, I guess you can first delete the file and after that uploading the new one having the same name the old had.

In GeoServer's REST configuration API there are DELETE and PUT operations for data stores (

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.