There is usually no need to reset anything.
In theory its best to create a backup of the folder before updating. (While the largest part of this is the /server-database part, the other contents are usually not relevant in terms of size.)
So if you want a "minimal backup", get /server-database and /blueprints from server directory.
The "update" itself, is most comfortable via the full GUI.
So if you have a machine as server with full GUI you only need to shutdown the server, and use the launcher to update.
For the NoGUI variant it "should" be a single command sent to the launcher, to update the game in -nogui mode.
However there are currently three issues with that.
They prevent using the -nogui option for dedicated servers without gui.
In theory only the .jar variant works, but does not exit, so fixing T408 would make the update possible, but the other two also prevent using the windows executable for this as a whole.
However, the update process itself is no magic and can be realized with a bit script knowledge by any platform.
The update is served via:
http://files.star-made.org/releasebuildindex
the file build-file is located in this "structure"
http://files.star-made.org/build/
unfortunately the CDN does not update that index reliable so using this is only good to see how the .zip paths are, and other file-paths.
This leads to two possible approaches to update your server:
Version a)
Version b)
If you are experienced in writing code,
you can use and recreate the full functionality of the launcher.
Get last line from
http://files.star-made.org/releasebuildindex
replace the "." at the beginning with
http://files.star-made.org
and append /checksums
Last line example for current release:
0.19320#20150711_191815 ./build/starmade-build_20150711_191815
resulting url to checksums file:
This file contains all checksums and files that are part of the build,
so a script could walk through every line,
and enqueue a download for every file that has a different checksum.
(This allows even a "smart-repair" and optimized downloads from version to version like the launcher does.)
However
there is no need to reinvent the wheel, based on this information Doomsider wrote a small bash script to update your server with the selective file-update the launcher can use in this thread:
Script to update Linux based servers with selective file download
Sure this does not help with "windows-no-gui-machines" but the code should give a good hint on what needs to be done when you have this setup.
- Andy