Menu
GitHub
Back to the guide

Back up Vane’s Docker data.
Verify the restore before switching.

Stop Vane before archiving its Docker volume. Restore into a separate, empty volume and verify that saved conversations open before switching volumes.

Tested October 28, 2026Docker · Named volumes · Same image

Tested with fresh data and saved chats. We verified an initialized-volume restore and a later cold restore containing 11 test conversations. Uploads, paid-provider credentials and older Perplexica migrations remain untested. The generalized commands below use your own deployment names.

Answer and verification scope

Stop the writer, archive the complete data volume, restore into an empty volume and verify both stored data and application behavior before switching. Keep the original volume until recovery is confirmed.

Recorded environment
October 28, 2026 · macOS ARM64 · Docker Engine 29.1.3. The initial drill identifies the upstream digest; the saved-chat drill records the rebuilt custom image and runtime comparisons.
Observed recovery
The populated restore retained 11 conversations and 11 messages, matched the two volume-file hashes before startup and passed SQLite quick_check. One existing completed answer opened in the UI.
Public evidence
Sanitized recovery report (JSON). A later new answer was saved and survived a restart, but failed a separate accuracy check about SearXNG privacy.

Limits: This does not validate live backups, uploads, paid-provider credentials or cross-version migration. Successful data recovery does not establish answer accuracy.

Initial recovery drill: initialized data

On an ARM64 macOS host with Docker Engine 29.1.3, we started the official Vane image with a dedicated named volume mounted at /home/vane/data. The initial setup created config.json and db.sqlite. We stopped the container, archived the volume, restored it to a new volume and compared SHA-256 hashes of both files before starting the restored instance.

The restored application returned HTTP 200 and reached the same “Manage Connections / No connections configured” state. No model provider was configured. The source volume was retained throughout the test.

Tested image digest:

Tested ARM64 image reference
itzcrazykns1337/vane@sha256:0b61bf0d4470e9f2a9c71f794b72fab6e5a612177172770684c158a461f6896e

This identifies the image used in this drill, not a recommendation to run it on every architecture. Use your own recorded image reference for recovery. A same-image restore and a cross-version upgrade are different tests.

Follow-up drill: restore saved chats, not just startup

Later on October 28, 2026, the isolated local instance contained 11 conversations and 11 message records from our tests. We stopped the writer, archived the complete data volume read-only, restarted the source instance, and restored the archive into a new, empty volume. The archive stayed private.

CheckObserved result
All volume files before restored startupconfig.json and db.sqlite matched the source SHA-256 hashes
Conversation / message counts11 / 11 before backup, before restored startup, and after startup
SQLite quick_checkok before and after restored startup
Application-level checkAn existing question, completed answer and source cards opened in the recovery instance
Source deploymentOriginal volume retained and original instance restarted

The recovery image was rebuilt from the published custom repair recipe, based on the same pinned upstream digest. The application package, search bundle, Mwmbl parser and SearXNG settings matched the source instance byte-for-byte. We did not compare the entire container filesystem or restore host Ollama model weights.

Image availability is part of recovery.

An attempted docker commit failed because this host lacked the old image manifest metadata, even though its container could run. We used the independently rebuilt image only after the runtime-file comparisons above. A running container is not proof that you have a usable recovery image. Check your image reference and reproducible build inputs before relying on a data archive.

Download the sanitized verification report (JSON). It includes counts, checks and limitations, not the database, backup archive, credentials or conversation text. Counts and file equality do not mean every saved chat was opened; we checked one known completed answer in the UI.

We then asked a different question about SearXNG using the restored local model connection. A new answer and source cards were generated and saved; the recovered database reached 12 conversations and 12 message records and again passed quick_check. The new answer remained readable after another restart. This verifies new-message generation and writing.

That new answer failed a separate content check: it overstated query confidentiality from search providers and instance operators. SearXNG sends requests to search services, and its privacy protections do not make query text invisible to those services. Its documentation also explains the trust placed in public-instance administrators. See SearXNG’s private-instance privacy explanation. The restored application working does not establish that each generated answer is accurate. See the privacy claim failure case and review worksheet for a separate check of those boundaries.

Identify your data and image first

Run the following in a Unix-compatible shell on the Docker host. The archive commands use shell redirection; use a Unix shell such as WSL on Windows rather than assuming identical binary-stream handling in every PowerShell version.

Identify mounts and image
docker ps -a
docker container inspect --format '{{json .Mounts}}' YOUR_CONTAINER
docker container inspect --format '{{.Image}}' YOUR_CONTAINER

Replace YOUR_CONTAINER. Inspect all mounts, not just the expected data path. A bind mount requires its own host-directory backup. Uploads or configuration stored outside the data volume are not included automatically. Keep the original container definition, ports, environment and any separate SearXNG configuration in your recovery plan.

Set the following values in the same shell. The image can be the local image ID printed above or a recorded repository digest. Verify the source volume exists; a misspelled volume name can otherwise create an empty volume.

Set and check backup inputs
VANE_BACKUP_IMAGE=YOUR_EXISTING_IMAGE_ID_OR_DIGEST
VANE_SOURCE_VOLUME=YOUR_EXISTING_VOLUME
VANE_CONTAINER=YOUR_CONTAINER
VANE_ARCHIVE="$PWD/vane-data-backup-UNIQUE_DATE.tar.gz"
docker image inspect "$VANE_BACKUP_IMAGE" >/dev/null
docker volume inspect "$VANE_SOURCE_VOLUME"

Choose a new archive filename for each run and confirm available disk space. Do not proceed if an inspection fails. This workflow uses the tested image’s shell, tar and sha256sum tools; verify those tools when using a different image.

Stop the writer, then archive the volume

Schedule a maintenance window. Stop Vane and any other process writing to this volume before copying the database. These commands are for a cold backup, not a live SQLite backup procedure.

Stop Vane and record file hashes
docker stop "$VANE_CONTAINER"
umask 077
docker run --rm --entrypoint sh \
  -v "$VANE_SOURCE_VOLUME:/source:ro" "$VANE_BACKUP_IMAGE" \
  -c 'cd /source && sha256sum config.json db.sqlite' > "$VANE_ARCHIVE.files.sha256"

Next write only the binary archive to its own file. Keep logs and hashes out of that stream. Shell noclobber prevents replacing an existing archive:

Archive the stopped data volume
(set -C; docker run --rm --entrypoint sh \
  -v "$VANE_SOURCE_VOLUME:/source:ro" "$VANE_BACKUP_IMAGE" \
  -c 'tar -C /source -czf - .' > "$VANE_ARCHIVE")

Check the command’s exit status. A failed command may leave a partial archive; do not treat file existence alone as success. The archive includes the volume’s full contents; the two hashes check only the named files we observed in the fresh installation.

If you only needed a backup, you can restart the original container with docker start "$VANE_CONTAINER" after the archive succeeds. Keep it stopped while recording and copying files for the same consistency point.

Restore into an empty volume

Use a new recovery volume. Never extract a test archive over the original or a running application’s data. This helper refuses extraction if the destination contains files:

Restore to an empty recovery volume
VANE_RESTORE_VOLUME=YOUR_NEW_RECOVERY_VOLUME
docker volume create "$VANE_RESTORE_VOLUME"
docker run --rm -i --entrypoint sh \
  -v "$VANE_RESTORE_VOLUME:/restore" "$VANE_BACKUP_IMAGE" \
  -c 'test -z "$(ls -A /restore)" && tar -C /restore -xzf -' < "$VANE_ARCHIVE"

If extraction fails, stop and investigate. A partially extracted volume is no longer empty; use another new volume for a clean retry. Keep both the source and archive until recovery has been confirmed.

Compare restored file hashes
docker run --rm --entrypoint sh \
  -v "$VANE_RESTORE_VOLUME:/source:ro" "$VANE_BACKUP_IMAGE" \
  -c 'cd /source && sha256sum config.json db.sqlite' > "$VANE_ARCHIVE.restored.sha256"
cmp "$VANE_ARCHIVE.files.sha256" "$VANE_ARCHIVE.restored.sha256"

No output from a successful cmp means the two manifests match. Missing files, errors or differing hashes require investigation before starting the restored service. A matching checksum proves byte equality, not application-level completeness.

Start a separate recovery instance

For the standard bundled image, the following uses a different container name and a loopback-only port. Ensure port 3101 and the name are free. Slim images, Compose services and custom deployments also need their original settings; do not replace those definitions with this generic command.

Start the recovery check
docker run -d --name vane-restore-check \
  -p 127.0.0.1:3101:3000 \
  -v "$VANE_RESTORE_VOLUME:/home/vane/data" "$VANE_BACKUP_IMAGE"
docker logs --tail 100 vane-restore-check

Wait for startup and migrations, then open http://localhost:3101. In our drill, this returned the original unconfigured setup screen. For an established deployment, additionally verify expected provider settings, representative chat records, file access and a complete search. Do not publish or share credentials while checking them.

If settings unexpectedly appear empty, check the volume and mount path before running setup again. Consult the upgrade guide for image changes and search troubleshooting if the application starts but retrieval fails.

Stop the check with docker stop vane-restore-check when finished. Switching production to a restored volume is a separate maintenance operation: stop writers, preserve the current data, and deliberately recreate the service with its intended configuration. This page does not automate that switch.

Protect backups and keep more than one copy

A named volume survives container replacement, but it is not an independent backup. A local archive on the same computer does not protect against loss of that computer. Keep dated copies in a protected, separate location and periodically repeat a recovery drill.

Treat the archive and deployment records as sensitive: they may include provider credentials, private conversations or other data. The tar.gz format compresses data; it does not encrypt it. Restrict access and use your organization’s approved encrypted storage and retention process. Never commit a backup to a public repository.

Sources and verification limits

Test and documentation check: October 28, 2026. We verified a same-image initialized-volume restore and a later populated-data cold restore with the runtime comparisons recorded above. We did not verify live backups, multi-user data, uploaded files, remote storage recovery or cross-version database compatibility. The inspection and recovery checklist is our editorial guidance, not an upstream migration guarantee.

Before you move on

Use these checks to decide what worked and where to stop. They are a reader checklist, not additional test results.

Preserve original data

Continue when: The writer is stopped for archiving and the original volume and backup are retained.

Stop when: You cannot identify the data or image, or would overwrite existing data.

Identify your data first

Restore integrity

Continue when: The archive is restored into a new empty volume and recorded file checks match.

Stop when: The target is nonempty, extraction fails or hashes differ. Do not switch deployments.

Review restore checks

Application recovery

Continue when: Expected records open, a new record saves and remains after restarting the isolated recovery instance.

Stop when: Only HTTP 200 works, data is missing or writes fail. Keep the original and archive.

Verify before switching