AnythingLLM Backup and Migration

Everything AnythingLLM knows lives in one folder. Back that up and you can rebuild the whole instance anywhere; move it and you have moved the instance.

What is in the storage folder

  • anythingllm.db: the SQLite database with workspaces, users, chats, threads, embed widgets and API keys.
  • documents/: every document as AnythingLLM processed it, as text and metadata.
  • lancedb/: the vectors, one collection per workspace.
  • vector-cache/: cached vectors, so a document is not embedded twice.
  • models/: the downloaded embedding and transcription models.
  • The settings file with the model provider and keys. On Hosting for AnythingLLM it is .env.enc, encrypted, with an identical backup copy beside it.

Backing up

On Hosting for AnythingLLM the storage folder is the app's volume. It is synced to a standby server continuously, which protects against a server failing but not against a mistake such as a deleted workspace, because the deletion is synced too. For that, take a backup from the panel's Backup tab and download it, or download single files with the file manager. Take one before large changes and before switching the embedder.

On a self-hosted install, stop the container or pause uploads and copy the folder. The SQLite database and LanceDB should not be copied while they are being written.

Moving to Hosting for AnythingLLM

  1. Deploy a new app and sign in once, so its storage exists.
  2. Stop AnythingLLM on the old machine and take its storage folder. In the desktop app it is in your user profile; on Docker it is the folder mounted at /app/server/storage.
  3. Upload anythingllm.db, documents/, lancedb/ and vector-cache/ into the app's storage with the file manager, then restart the app from the panel.
  4. Sign in and enter your model key again in AnythingLLM's settings. If the old instance was in multi-user mode, sign in with your old admin account.

A move with a different embedder than before needs the documents embedded again; keep the same embedder to reuse the vectors. Workspaces can also be moved one at a time by adding the original files again, which suits a fresh start.

Bring your library to an always-on server with Hosting for AnythingLLM on Flux.

Frequently Asked Questions

What do I need to back up?

The storage folder. It holds the database with workspaces, users and chats, the processed documents, the vectors, the cache and the settings file. On Hosting for AnythingLLM that is the app’s volume, which the panel can back up and download.

Can I move my desktop AnythingLLM to a server?

Yes. The desktop app keeps the same kind of storage folder on your computer. Upload its contents to the server’s storage with the file manager, then sign in on the server and enter your model key again.

Why do I have to enter my model key again after a move?

Keys are in the settings file. On our servers that file is encrypted with the app’s own key, so a settings file from elsewhere is not used. Enter the key once in AnythingLLM and it is encrypted from then on.

What if the encrypted settings cannot be read?

AnythingLLM still starts, with fresh settings, and the unreadable file is set aside rather than deleted. Your documents and chats are in the database and are untouched. Enter the model key again.

AnythingLLM is open-source software (MIT) and a trademark of Mintplex Labs (https://github.com/Mintplex-Labs/anything-llm). Flux is not affiliated with or endorsed by Mintplex Labs.

Hosting for AnythingLLM on the decentralized cloud

Dedicated resources, a standby server, model keys encrypted at rest, HTTPS and your own domain. From $3.49/month.

Hosting for AnythingLLM on Flux

Chat with your documents, on your own server.

A product of Flux

AnythingLLM is open-source software (MIT) and a trademark of Mintplex Labs. Flux is not affiliated with or endorsed by Mintplex Labs.

© 2026 InFlux Technologies. All rights reserved. v1.22.0