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?

  • How many files do you need to upload at any given day btw?
    – R.K.
    Nov 27, 2012 at 14:45
  • My process generates only one shp file a day, which I need to put on geoserver. Nov 27, 2012 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, 2012 at 14:49
  • I'll be overwriting the old one. Nov 27, 2012 at 14:58

1 Answer 1


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 (http://goo.gl/8Fgej).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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