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
- Identify
OLLAMA_MODELSor use the platform default:~/.ollama/modelson macOS,/usr/share/ollama/.ollama/modelson standard Linux installs, or%USERPROFILE%\.ollama\modelson Windows. - 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.
- Place the copy in a new target directory. Set
OLLAMA_MODELSin the target service environment and grant that service account read/write access before starting Ollama.
Verify the result
- Compare
ollama listwith 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.
