Migratarr
Migratarr decides where your media should live, and moves it there once you approve. It works alongside Radarr and Sonarr (which manage what's in your library) and Jellyfin (which plays it), and sorts movies and TV across your disks by how hard each title would be to get again, whether it's on a streaming service you pay for, and how your household actually watches it.
Every move is planned first. Nothing moves until you review the plan and approve it.
Status: 0.1.0, the first public release. Migratarr was built for one home media stack and has moved real libraries there over a NAS. Moving files between disks attached to the same machine is new in 0.1.0 and experimental. Linux only. Read Safety model before pointing it at a library you care about.
Who it's for
You run Radarr and Sonarr (and Jellyfin) at home, your media is spread over several disks, and you'd like the titles you'd struggle to replace on the disks you trust most, without moving thousands of folders by hand.
What it does
For each movie and series, Migratarr looks at:
- Replacement difficulty: how many releases Radarr or Sonarr can still find. An estimate, not a guarantee.
- Streaming: whether it's on a service you subscribe to, free with ads, rent/buy only, or not streaming in your region (from TMDB).
- Usage: Jellyfin plays, how recent, repeat plays and how many people in the household watched it, with a grace period for new additions.
- Collections (movies): a small bonus when related films are already protected.
From that it picks a placement category:
| Movies | TV |
|---|---|
| Common | Current |
| Library | Library |
| Rare | Rare |
| Archive | Archive |
You decide which disks hold each category and which folder each one uses. A title that's hard to replace and isn't streaming anywhere stays in Rare even if nobody has watched it lately; a widely available title nobody plays may become an Archive candidate.
A plan from migratarr demo: nothing moves until each row is approved.
Settings & health: set up in the browser; planning waits until every check passes.
Requirements
- A Linux machine with Python 3.10 or newer that can see your media disks. Migratarr uses only the standard library.
- Radarr and Sonarr (Sonarr v4 recommended), Jellyfin, and a TMDB API Read Access Token.
- Radarr's and Sonarr's root folders already pointing at the disks and category folders Migratarr will use.
- To move files, by default, permission to run
docker execin the Radarr and Sonarr containers: before and after every move Migratarr checks the files where Radarr and Sonarr see them. For Radarr and Sonarr installed without Docker, choose that during setup and Migratarr checks on the host instead; see Arr file checks. - For moves on a NAS: SSH access to the NAS with a key used only by Migratarr, and Python 3 on the NAS.
Install
pip install migratarr
Install it into a virtual environment, or with pipx install migratarr, if
your system Python doesn't allow pip install. Check it worked with
migratarr --version.
Try it first
migratarr demo
Plans a made-up library with the real planning pipeline and opens the web UI
read-only at http://localhost:8767, so you can see what a plan looks like
before connecting anything. It needs no Radarr, Sonarr, Jellyfin or TMDB,
uses no network, and never reads or writes your own settings. Everything
goes in a new temporary folder (--dir to choose one; delete it when done).
First run
Run Migratarr as a user that can read and write your media folders, then:
migratarr ui
It prints the address, http://localhost:8765. The UI listens on this machine
only (127.0.0.1). If Migratarr runs on a server, open an SSH tunnel from your
own computer and browse to the same address:
ssh -L 8765:localhost:8765 media-host.example
With no settings yet, every page leads to the setup wizard:
- Connect your services: Radarr, Sonarr, Jellyfin and TMDB. Detect reads Radarr's and Sonarr's keys from their own config; or paste a key.
- Where your disks are: on a NAS over SSH, or on this machine's own disks (experimental). Also the data folder.
- Disks and categories: your disks, the folder for each category, and which disks hold each category.
- Streaming services: your TMDB region and the services you pay for.
- Review and save: nothing is written until you save.
After saving, the wizard runs the health checks. Fix anything that failed in Settings & health, then make your first plan. SETUP.md walks through each step.
Where moves run
| How it works | Status | |
|---|---|---|
| NAS over SSH | Migratarr runs on a machine that mounts the NAS disks and sends each move to the NAS over SSH, so files are copied on the NAS rather than over the network | Used on a real library |
| This machine's own disks | Moves run directly on disks attached to the machine running Migratarr | Experimental: not yet run end to end against a real Radarr and Sonarr |
Both use the same plan, approval and safety checks.
Using it
The web UI covers the whole cycle:
- Plan: "Plan a new run". Planning is read-only: it scores your library, proposes moves and freezes the result as a run. A large library can take a while.
- Review and approve: pick moves (or "Review all"), check sizes, free space afterwards and folder permissions, then approve them.
- Run: "Run N approved moves", check the order, then "Start moving". Each move is checked again just before it runs. You can stop after the current move.
Jobs keep running if you close the browser or restart the UI.
migratarr ui --read-only shows everything with every action switched off.
Safety model
- Plan, review, approve, run. Planning never touches media files. Only an approved move can run, and you start it.
- No plan while a health check fails.
migratarr planand the UI refuse to plan until every check passes (warnings are fine). - Plans are frozen. Each run is a read-only, checksummed snapshot of the plan and the code that made it.
- Approvals are tied to the exact plan. If the plan changes after you approve, the move refuses to run.
- Every move is checked again first: the plan and approval, what Radarr or Sonarr say about that item right now, and a SHA-256 hash of every file.
- Moves don't overwrite. A move on one disk is a rename that never replaces an existing folder. A move between disks copies to a staging folder, verifies, publishes, updates Radarr or Sonarr, and deletes the source only after checking the copy.
- Everything is journaled. Each move writes a journal before and after
every change. A move that fails part way is never retried automatically:
you check it and record what you found with
migratarr reconcile. - Settings changes are careful. Saving makes a backup, and is refused while a job or move is running.
There is no undo. Start with your smallest, least important titles.
Commands
| Command | What it does |
|---|---|
migratarr demo [--dir DIR] [--port N] [--no-ui] |
Try it on a made-up library: plans offline, UI read-only |
migratarr ui [--port N] [--read-only] |
The web UI: setup, settings, plan, approve, run |
migratarr plan [--check] |
Make a new plan; nothing moves. --check runs the checks only |
migratarr status [--run RUN | --execution ID] [--json] |
Runs, moves and their journals (read-only) |
migratarr approve ... |
Approve moves from the terminal: --list, --approve ID, --approve-batch --media TV --transfer CROSS_DISK_TRANSFER [--limit N] [--yes], --revoke ID, --status |
migratarr doctor [--offline] [--json] [--migrate] |
Check settings, services, disks and the NAS; shows the data folder |
migratarr reconcile ID --outcome ... --note ... |
Record that a move flagged for checking was checked by hand |
migratarr <command> --help lists each command's options. Moves are started
from the web UI.
Where settings and data live
Everything goes in one data folder: $MIGRATARR_HOME if set, otherwise
~/.local/share/migratarr. (Running from a git clone, the clone itself.)
migratarr doctor prints which folder is in use. It holds config/ (the
three settings files and their backups), runs, approvals and move journals.
Pasted API keys are kept apart, in ~/.config/migratarr/secrets/, readable by
your user only; see SECURITY.md.
Limitations
- Linux only.
- Moves on this machine's own disks are experimental.
- One machine runs Migratarr, and it must see the disks. With a NAS, that's one NAS reached over SSH.
- Radarr and Sonarr must see the media under the same folder layout: one root, then a category folder, then the title.
- Radarr or Sonarr on a different machine, with no view of their media from the machine running Migratarr, isn't supported.
- Moves run from the web UI; there's no command that runs them.
- Streaming groups are written for the US; elsewhere, add your region's services (Provider families).
- 0.x: settings files and commands may still change between minor versions, always with a migration or a note in the changelog.
Documentation
- SETUP.md: the setup wizard step by step, and editing settings by hand
- Settings: the settings files, version 2 and the health checks
- Runtime configuration:
runtime.jsonreference - Storage targets: disks, categories and placement
- Planner settings: streaming, override tags and scoring
- Media layout: where Migratarr expects each title to be
- UI actions: what each button does and checks
- Changelog
Contributing
See CONTRIBUTING.md.
Security
See SECURITY.md. Report vulnerabilities privately through GitHub, not in a public issue.
License
MIT.
Metadata
Release files for migratarr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| migratarr-0.1.0.tar.gz | 318.2 kB | With provenance | Details for migratarr-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| migratarr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for migratarr-0.1.0-py3-none-any.whl |
Total release size: 550.4 kB
Release files / migratarr-0.1.0.tar.gz
| Download URL | migratarr-0.1.0.tar.gz |
|---|---|
| Size | 318.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95c257f15a9689a9dac6457c982025893dd0726b0fd862c9061c207eceb7009d
|
|
BLAKE2b-256 checksum How to use checksums |
096996241d50a27b95c31e04107d91b5e0ae148a9dc38eaf2b0a32632b08ef64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / migratarr-0.1.0-py3-none-any.whl
| Download URL | migratarr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 232.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
582e916c1b1328acff4549a4a26a4aa66149b9cb713a1e5b82196e1fcbce2e1b
|
|
BLAKE2b-256 checksum How to use checksums |
0259ddad32f71ee34841ce3595f072acde4b431edf3e097872eb8b86b7ffe5a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for migratarr 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for migratarr-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.