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 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.2.0. Migratarr was built for one home media stack and has moved real libraries there over a NAS. 0.2.0 adds a Docker image, a login for using the UI from your network, and scheduled plans with notifications. Moving files between disks attached to the same machine is 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 in the web UI: disk space now and after the moves, then each move with its categories, disks, size, status, approval and the reasons behind it

A plan from migratarr demo: nothing moves until each row is approved.

Settings and health page: services, where moves run, disks and categories, streaming, scoring and override tags, each marked OK

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), or Docker.
  • 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. 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

With pipx, which keeps Migratarr in its own environment:

sudo apt install pipx    # Debian and Ubuntu; other systems: see the pipx docs
pipx install migratarr
migratarr --version

Update later with pipx upgrade migratarr. Inside a virtual environment you manage yourself, pip install migratarr works too. A plain pip install into the system Python is refused on current Debian and Ubuntu ("externally-managed-environment"); use pipx instead.

Or run it in Docker next to Radarr and Sonarr, with nothing to install on the host:

docker run -d --name migratarr -p 8765:8765 -e PUID=1000 -e PGID=1000 \
  -v ./migratarr:/config -v /srv/data:/data ghcr.io/jwilcox99/migratarr:latest

Mount your media at the same path as in your Radarr and Sonarr containers. See Docker for a compose example and setup.

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. By default the UI listens on this machine only (127.0.0.1). If Migratarr runs on a server, either:

  • use it on your network with a sign-in, like Radarr and Sonarr:

    migratarr ui --host 0.0.0.0
    

    Then browse to http://<server>:8765. The first visit asks you to create a login, so open it right away. Change it later with migratarr password. Don't expose the port to the internet.

  • or keep it local and open an SSH tunnel from your own computer, then browse to http://localhost:8765:

    ssh -L 8765:localhost:8765 media-host.example
    

MIGRATARR_HOST and MIGRATARR_PORT set the same as --host and --port.

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: tested end to end with real Radarr and Sonarr in a throwaway test setup (examples/local-test/), not yet on a real library

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: "Approve and start moving" on the review page does both; or "Approve only" now and "Run N approved moves" later, 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.

Settings & health > Schedule & notifications plans automatically on the days and at the time you pick, and sends a message to Discord, a webhook or email when a batch is ready, moves finish or something fails. A scheduled plan waits while the last batch is still waiting for you. See Schedule and notifications. 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.2.0rc2

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.2.0rc2
File Size Uploaded Provenance Actions
migratarr-0.2.0rc2.tar.gz 355.2 kB With provenance Details for migratarr-0.2.0rc2.tar.gz

Built distribution (wheel)

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

Total release size: 612.7 kB

Release files / migratarr-0.2.0rc2.tar.gz

Download URL migratarr-0.2.0rc2.tar.gz
Size 355.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fe540b5bddd2ff95e1af899da3e5eb810aa0732e37c35e1bbb5e1180f6c8eff4
BLAKE2b-256 checksum
How to use checksums
cdcbdb905e2c3990a730667eb240ebfcb91e80ae9a5a712444841a69a9012aa2
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 log

Release files / migratarr-0.2.0rc2-py3-none-any.whl

Download URL migratarr-0.2.0rc2-py3-none-any.whl
Size 257.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e0b8ace6df8a363954269910e1611dd8a0d8360f4764fee5f336329aa4c6c26
BLAKE2b-256 checksum
How to use checksums
9a5de199acdbc0b81b411f4fcf82ba236b4648c89ef5ae364ab40e91fb725c07
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 log

Security for migratarr 0.2.0rc2

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.2.0rc2.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 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