Ollama storage

Preserve model manifests and blobs as one set; this does not back up chat history belonging to another application.

Last updated

On this page (5)

Ollama ยท Storage

Before you start

  • Compatible Ollama version and enough disk space.
  • Configured model path and service-account access.
  • Quiescent model pulls, imports and deletions.

Procedure

  1. Identify OLLAMA_MODELS or use the platform default: ~/.ollama/models on macOS, /usr/share/ollama/.ollama/models on standard Linux installs, or %USERPROFILE%\.ollama\models on Windows.
  2. Copy the entire model tree after model writes have stopped. Save service overrides and any custom Modelfiles separately; verify the copy before moving it off-host.
  3. Place the copy in a new target directory. Set OLLAMA_MODELS in the target service environment and grant that service account read/write access before starting Ollama.

Verify the result

  • Compare ollama list with the source inventory.
  • Use ollama run <known-restored-tag> with a harmless prompt on the test host; ensure it loads the restored model without a download.

Official documentation

Have Pilae operate Ollama

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.