Backing Up and Updating
Scope: the shortest backup story in this whole series of guides — one file — and the update routine that keeps a scraping-driven project healthy.
The backup: one file
Most services in this series make you protect a database and a tree of files. SearXNG keeps nothing: no accounts, no search history, no library. The whole of your instance's identity is:
- settings.yml — your copy, with your secret key, your engine switches, your formats. This is the backup. Copy it somewhere that is not the same disk; a settings file in a password manager's notes or on your usual backup drive is the whole job.
- limiter.toml, if you run the limiter (chapter 10 — the lab did not).
- Your preferences need no backup and cannot have one: they live in each browser. If you have tuned a browser carefully, the preferences page's encoded URL (chapter 6) saved as a bookmark is the backup of that tuning.
Restore is the mirror: install fresh (chapter 3), drop the saved settings.yml in place, start. The lab moved its settings through four edits and five restarts across two days; the file carried everything every time. There is no second part to this job, and any guide that invents one is padding.
Updating: the program moves, your file stays
Because the settings live outside the clone (chapter 3's layout), updating the manual install is:
cd searxng
git pull
./venv/bin/pip install -r requirements.txt # dependencies move too
# restart the server
Then run the smoke checks before you trust it:
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:8888/ # 200
curl -s 'http://127.0.0.1:8888/config' | grep -o '"version": *"[^"]*"' # the new date
curl -s 'http://127.0.0.1:8888/search?q=test&format=json' # your formats still on
The /config version line is the proof the new code
is the running code — dates make it easy to say
exactly what you run. For a Docker install the shape
is the same with different verbs: pull the newer
image, recreate the container, settings volume
untouched, same three checks.
How often? SearXNG changes constantly because its upstreams do — an engine that sulks is usually fixed upstream within days. A household rhythm of updating every month or two, and promptly when a favourite engine breaks, matches how the project actually lives. Two habits keep updates boring:
- Read your own log after an update. New engine load failures announce themselves there first (the ahmia/torch pair from chapter 3 are the friendly example).
- Keep the old settings copy before you edit. Every settings change in this guide was made on the one file; a dated copy beside it turns any bad edit into a thirty-second retreat.
And the pinning question: the lab tracked the master
branch at a named commit (81371861) and says so
wherever it matters. A household can track releases
instead for a quieter life; what matters is that you
can name what you run — and with date versions, you
always can.