qBt Migrate
This tool changes the root paths of existing torrents in qBittorrent. It can also convert slashes when migrating between Windows and Linux/Mac.
Usage
Install from PyPi using pip
pip install qbt-migrate
Run the script and follow prompts or use CLI arguments with command qbt_migrate
usage: qbt_migrate [-h] [-e EXISTING_PATH] [-n NEW_PATH] [-t {Windows,Linux,Mac}]
[-b BT_BACKUP_PATH] [-l {DEBUG,INFO}]
optional arguments:
-h, --help show this help message and exit
-e EXISTING_PATH, --existing-path EXISTING_PATH
Existing root of path to look for.
-n NEW_PATH, --new-path NEW_PATH
New root path to replace existing root path with.
-t {Windows,Linux,Mac}, --target-os {Windows,Linux,Mac}
Target OS (converts slashes). Default is to not change
existing Target OS.
-b BT_BACKUP_PATH, --bt-backup-path BT_BACKUP_PATH
BT_Backup Path Override.
-l {DEBUG,INFO}, --log-level {DEBUG,INFO}
Log Level, Default is INFO.
By default, everything happens in the BT_Backup directory defined by the OS the script is running on.
Override BT_Backup path if needed.
Default BT_Backup paths:
- Windows:
%LOCALAPPDATA%/qBittorrent/BT_Backup - Linux/Mac:
$HOME/.local/share/data/qBittorrent/BT_backup
A backup zip archive is automatically created in the directory that contains
the BT_Backup directory. Default, for instance, would be the qBittorrent directory mentioned above.
Examples
Assuming all of our torrents are in X:\Torrents when coming from Windows, or /torrents when coming from Linux/Mac
qbt_migrate -e X:\ -n Z:\ -t Windows # Windows to Windows (Drive letter change)
qbt_migrate -e X:\Torrents -n X:\NewDir\Torrents -t Windows # Windows to Windows (Directory Change)
qbt_migrate -e X:\Torrents -n Z:\NewDir\Torrents -t Windows # Windows to Windows (Drive letter change with directory change)
qbt_migrate -e X:\Torrents -n /torrents -t Linux # Windows to Linux/Mac (converts slashes)
qbt_migrate -e /torrents -n /new/path/for/torrents # Changes torrent root path on Linux/Mac
qbt_migrate -e /torrents -n Z:\Torrents -t Windows # Linux/Mac to Windows (converts slashes)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qbt_migrate-2.0.1.tar.gz.
File metadata
- Download URL: qbt_migrate-2.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b31d41da0754eb62cfc6ce187cecf1c475d49ed0d84df8d23b60f2c867c961ea
|
|
| MD5 |
bff3a28e8b1d434884b493ba0fd2daf9
|
|
| BLAKE2b-256 |
d2a1efafd10c805932481c165ff35847e7d137283eb1b19d656572182fb99578
|
File details
Details for the file qbt_migrate-2.0.1-py3-none-any.whl.
File metadata
- Download URL: qbt_migrate-2.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d018bfbbe3c4ad5024bf9895da80f9718877547af85755448d9a5e471709202
|
|
| MD5 |
338009c05807bcb9422f063fe8403f8a
|
|
| BLAKE2b-256 |
616e25e9d095b8964098555cb03b2a7e66ae4b00d0084c6e3d8950f85d5c4077
|