Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Migratarr

Migratarr

Migratarr decides where your Radarr and Sonarr 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.

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 exec in the Radarr and Sonarr containers: before and after every move Migratarr checks the files where Radarr and Sonarr see them. Non-Docker installs can check 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:

  1. Connect your services: Radarr, Sonarr, Jellyfin and TMDB. Detect reads Radarr's and Sonarr's keys from their own config; or paste a key.
  2. Where your disks are: on a NAS over SSH, or on this machine's own disks (experimental). Also the data folder.
  3. Disks and categories: your disks, the folder for each category, and which disks hold each category.
  4. Streaming services: your TMDB region and the services you pay for.
  5. 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:

  1. 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.
  2. Review and approve: pick moves (or "Review all"), check sizes, free space afterwards and folder permissions, then approve them.
  3. 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 plan and 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

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.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for migratarr 0.1.0rc1
File Size Uploaded Provenance Actions
migratarr-0.1.0rc1.tar.gz 293.7 kB With provenance Details for migratarr-0.1.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for migratarr 0.1.0rc1
File Interpreter ABI Platform Actions
migratarr-0.1.0rc1-py3-none-any.whl Python 3 none any Details for migratarr-0.1.0rc1-py3-none-any.whl

Total release size: 524.8 kB

Release files / migratarr-0.1.0rc1.tar.gz

Download URL migratarr-0.1.0rc1.tar.gz
Size 293.7 kB
Tags Source
SHA-256 checksum
How to use checksums
df2f8e964c9f7b5ef8c1817f68a3478558168a07abd1ebddf00bc89b184986f8
BLAKE2b-256 checksum
How to use checksums
3d475c8c3977ac557b850f778121211ac2b34cdd09d200ac5190e2276d9788bd
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 28, 2026.

Transparency log

Release files / migratarr-0.1.0rc1-py3-none-any.whl

Download URL migratarr-0.1.0rc1-py3-none-any.whl
Size 231.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c6ceadbb20ad1bfa261f6d644167b94151f1dce65dea94941b2cd72a4fd3394
BLAKE2b-256 checksum
How to use checksums
0a644cefe605d69dbe05f9f7b593edbc46351ef00346cac59fea29fa45e56656
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 28, 2026.

Transparency log

Security for migratarr 0.1.0rc1

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.

Select from 2 files

Attestation for migratarr-0.1.0rc1.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 28, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page