Skip to main content

Client migration

The qui migrate command imports torrents from Deluge, rTorrent, Transmission, or uTorrent into qBittorrent. It preserves their state: save paths, trackers, transfer totals, timestamps, seeding time, labels, paused state, and per-file selection. Completed torrents arrive in a verified state, so qBittorrent skips the recheck.

qui migrate {deluge | rtorrent | transmission | utorrent} \
--source-dir <client state dir> \
--qbit-dir ~/.local/share/qBittorrent/BT_backup

Run with --dry-run first to preview the import. The dry run writes nothing.

Before you start​

  1. Stop the source client cleanly. All four clients flush their resume state on shutdown. If you terminate the process abruptly, it leaves stale or missing state files.
  2. Stop qBittorrent. The importer writes into qBittorrent's BT_backup directory. qBittorrent reads that directory only at startup.
  3. After the migration finishes, start qBittorrent. The imported torrents appear with their history intact.

The command does not change the source client's files or your downloaded data. To switch back, stop qBittorrent and start the source client again. This works until you move or rename data in qBittorrent.

If you do not set --skip-backup, the command archives both directories to qbt_backup/ in the current working directory before it writes anything. If the qBittorrent directory already exists, the command archives it. A fresh destination produces only the source archive. If you run the migration again, the command safely skips torrents that already exist in the target.

--qbit-dir is qBittorrent's session directory. Common locations: ~/.local/share/qBittorrent/BT_backup on Linux, %LOCALAPPDATA%\qBittorrent\BT_backup on Windows, and /config/qBittorrent/BT_backup in Docker images.

What your trackers see​

After the migration, qBittorrent announces each torrent as a new client. The announce has a new peer ID, and the upload and download counters for the session start at 0. The tracker records no new download.

Trackers that run UNIT3D or the current Gazelle keep seed time per user and torrent, not per client. On these trackers, the seed time continues from the total that the tracker already has. The tracker adds no time for the period when no client announces. Other tracker software can show a "seeding since" time per client. That time starts again.

The seeding time that the command writes into qBittorrent does not go to the tracker. qBittorrent uses it only for its share limits.

Two problems can stop the announces:

  • The tracker does not accept your qBittorrent version. Before you migrate, make sure that each tracker accepts that version.
  • The source client and qBittorrent seed the same torrent at the same time. Some trackers do not permit this. Stop the source client before you start qBittorrent.

Save paths​

By default, the command carries over save paths from the source client without changes. qBittorrent must see the downloaded data at those same paths. Otherwise, the torrents show as missing files.

If qBittorrent sees the data at a different path, add --replace-path from=to. The command replaces the start of each save path that begins with from with to:

qui migrate utorrent \
--source-dir /mnt/old-pc/uTorrent \
--qbit-dir /config/qBittorrent/BT_backup \
--replace-path 'D:\Downloads=/data/downloads' \
--replace-path 'E:\Movies=/data/movies'
  • from is the path as the source client stored it. to must be an absolute path on the machine that runs the command.
  • A rule matches whole folder names: /data matches /data/tv but not /database.
  • Windows paths in from match with either slash and without regard to case.
  • You can repeat the flag. If more than one rule matches, the first one wins.
  • The command also rewrites files that you moved out of the torrent folder in Deluge or uTorrent.

With these rules, you can move a library between Windows and Linux, or into a container. If a save path is not an absolute path on the host and no rule matches it, the command skips the torrent and logs a warning. Use --dry-run to check your rules first.

Deluge​

Point --source-dir at the state directory inside the Deluge configuration directory:

qui migrate deluge \
--source-dir ~/.config/deluge/state \
--qbit-dir ~/.local/share/qBittorrent/BT_backup

Supported: Deluge 1.3.x and 2.x. The importer reads torrents.fastresume and the per-torrent .torrent files. If the importer cannot find or read torrents.fastresume, it falls back to the .bak copy and the pre-1.3 location.

  • Labels from the Label plugin become the qBittorrent category. The importer reads these labels from label.conf in the configuration directory.
  • The importer preserves Deluge 2.x paused state and file renames. Because Deluge 1.3.x marks the whole library paused on shutdown, the importer cannot preserve paused state for version 1.3.x. All Deluge 1.3.x imports start resumed.
  • The importer skips BitTorrent v2 torrents. Their merkle trees do not survive this migration path, and qBittorrent rejects them.

rTorrent​

Point --source-dir at the session directory from your .rtorrent.rc (session.path.set):

qui migrate rtorrent \
--source-dir ~/.sessions \
--qbit-dir ~/.local/share/qBittorrent/BT_backup

Supported: rTorrent 0.9.x through 0.16.x, with or without ruTorrent.

  • ruTorrent labels (custom1) become the qBittorrent category. If ruTorrent addtime/seedingtime timestamps exist, the importer uses them. Otherwise, it falls back to plain rTorrent timestamps.
  • Both directory layouts work: the standard layout where the torrent folder sits inside the download directory, and d.directory_base layouts where files live directly in the download directory.
  • Trackers keep their tiers from the torrent file. The importer excludes trackers that you disabled in rTorrent and includes trackers that you added at runtime.
  • Stopped torrents stay stopped. The importer skips unfinished magnet downloads.
  • rTorrent tracks no cumulative seeding counter. The importer calculates seeding time as elapsed time since seeding began, and counts offline time in that total. If you import a long-lived library, review your share limits before you run the migration.

Transmission​

Point --source-dir at the Transmission configuration directory (the one that contains torrents/ and resume/):

qui migrate transmission \
--source-dir ~/.config/transmission-daemon \
--qbit-dir ~/.local/share/qBittorrent/BT_backup

Supported: Transmission 2.4 through 4.x. The importer supports legacy name-based session file names from 2.x. Resume files written by versions older than 2.4 have no block progress data, so the importer skips them. The log reports these torrents as not fully downloaded.

  • Transmission labels become qBittorrent tags.
  • Paused torrents stay paused. Per-torrent ratio and speed limits carry over.
  • If you set files to "do not download", they keep priority 0 in qBittorrent.

uTorrent​

Point --source-dir at the uTorrent directory that contains resume.dat and the .torrent files. On Windows, this is usually %APPDATA%\uTorrent. For BitTorrent, it is %APPDATA%\BitTorrent:

.\qui.exe migrate utorrent `
--source-dir "$env:APPDATA\uTorrent" `
--qbit-dir "$env:LOCALAPPDATA\qBittorrent\BT_backup"

Supported: uTorrent and BitTorrent 2.x and 3.x, the classic desktop clients. uTorrent Web uses a different format, and the importer does not read it.

  • uTorrent labels become the qBittorrent category.
  • The importer preserves renamed torrents, a renamed top folder, and renamed or moved files.
  • Stopped and paused torrents stay paused. Force-started torrents import as forced, outside qBittorrent's queue. Per-torrent ratio and speed limits carry over.
  • If a resume.dat entry points at a .torrent file outside the source directory and that file is gone, the importer looks for a file with the same name in the source directory.
  • The importer skips BitTorrent v2 and hybrid torrents, and magnet links that never got their metadata.

uTorrent on Windows stores Windows save paths such as D:\Downloads. To move that library to qBittorrent on Linux or in Docker, map the paths with --replace-path. See Save paths.

What is imported​

DelugerTorrentTransmissionuTorrent
Save path & content layout✓✓✓✓
Verified piece state (no recheck)✓✓✓✓
Upload/download totals & ratio✓✓✓✓
Added / completed timestamps✓✓✓✓
Seeding time✓✓✓✓
Trackers✓✓✓✓
Labelscategorycategory (ruTorrent)tagscategory
Paused state2.x only✓✓✓
Deselected files✓✓✓✓
File renames✓—✓✓
Per-torrent ratio/speed limits——✓✓

The importer tags every imported torrent migrated so you can find them with one filter. Running torrents import as auto-managed, so qBittorrent applies its queueing and share limits. Torrents that you stopped stay stopped and stay out of auto-management.

Partial torrents​

The importer imports only fully downloaded torrents. "Fully downloaded" means every file that you selected. If a torrent is still in progress, the importer skips it with a warning and leaves it in the source client. This check ensures that no torrent imports with incorrect piece state. If you have incomplete torrents, finish or remove them before you run the migration again.

note

On first start after a migration, qBittorrent logs a one-time warning per label that the category/tag was "missing from the configuration file" and recovers it. This warning is cosmetic.

See CLI Commands for the full flag reference.