If for some reason you wanted to override BT_backup path from /tmp/BT_backup within the container, simply setĮnvironment variable BT_BACKUP_PATH on the container to where you will be mounting in. Mounting in the default BT_backup path on a Linux/Mac machine running Docker docker run -v $HOME/.local/share/data/qBittorrent/BT_backup:/tmp/BT_backup jslay88/qbt_migrate -e X:\ -n Z:\ # Windows to Windows (Drive letter change)ĭocker run -v $HOME/.local/share/data/qBittorrent/BT_backup:/tmp/BT_backup jslay88/qbt_migrate -e X:\Torrents -n X:\NewDir\Torrents -t Windows # Windows to Windows (Directory Change) The Docker image has all functionality as the pip install, following the same arguments/patterns listed in the above examples.įor example, mounting in the default BT_backup path on a Windows machine running Docker docker run -v %LOCALAPPDATA%/qBittorrent/BT_backup:/tmp/BT_backup jslay88/qbt_migrate -e X:\ -n Z:\ # Windows to Windows (Drive letter change)ĭocker run -v %LOCALAPPDATA%/qBittorrent/BT_backup:/tmp/BT_backup jslay88/qbt_migrate -e X:\Torrents -n X:\NewDir\Torrents -t Windows # Windows to Windows (Directory Change) NOTE: When running qbt_migrate Docker image on a Linux/Mac machine, Windows paths will require double \. The BT_backup path is automatically overridden to /tmp/BT_backup, so mount your BT_backup there. You can also run this tool with Docker if you don't have Python, or don't want to install the package to your system directly. Qbt_migrate -regex -e /some/(\w+)/.*$ -n \1/matched/path -t Linux # Matches using regex patterns and replaces using capture groups. Qbt_migrate -r -e /some/(\w+)/.*$ -n \1/matched/path -t Linux # Matches using regex patterns and replaces using capture groups. # Example would replace /some/test/with/a/path with /test/matched/path Qbt_migrate -e /torrents -n Z:\\Torrents -t Windows # Linux/Mac to Windows (converts slashes) # When running on Linux machine \\ is needed for Windows Paths Qbt_migrate -e /torrents -n Z:\Torrents -t Windows # Linux/Mac to Windows (converts slashes) Qbt_migrate -e /torrents -n /new/path/for/torrents # Changes torrent root path on Linux/Mac Qbt_migrate -e X:\\Torrents -n /torrents -t Linux # Windows to Linux/Mac (converts slashes) # When running on Linux machine \\ is needed for Windows Paths Qbt_migrate -e X:\Torrents -n /torrents -t Linux # Windows to Linux/Mac (converts slashes) # When running on Linux machine \\ is needed for Windows Paths Qbt_migrate -e X: -n /torrents -t Linux # Windows to Linux/Mac (converts slashes) # When running on Linux machine \\ is needed for Windows Paths # Note Trailing Slash 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 X:\NewDir\Torrents -t Windows # Windows to Windows (Directory Change) qbt_migrate -e X:\ -n Z:\ -t Windows # Windows to Windows (Drive letter change) The correct pattern for this would be -e X: -n /torrents or -e X:\ -n /torrents/. e X:\ -n /torrents will result in /torrentsxxxxx, not /torrents/xxxxx. NOTE: Take note of trailing slash replacement when changing from Windows Linux. NOTE: When running qbt_migrate on a Linux/Mac machine, Windows paths will require double \. ExamplesĪssuming all of our torrents are in X:\Torrents when coming from Windows, or /torrents when coming from Linux/Mac Linux/Mac: $HOME/.local/share/data/qBittorrent/BT_backupĪ backup zip archive is automatically created in the BT_backup directory. Windows: %LOCALAPPDATA%/qBittorrent/BT_backup.v, -version Prints the current version number and exits.īy default, everything happens in the BT_backup directory defined by the OS the script is running on. Run the script and follow prompts or use CLI arguments with command qbt_migrate usage: qbt_migrate [-t Install from PyPi using pip, or jump to Examples for Docker pip install qbt_migrate It can also convert slashes when migrating between Windows and Linux/Mac.Īlso check out my Chrome Extension for handling TV Episode torrents.ĪLWAYS ensure qBittorrent is closed before running qbt_migrate.Įither quit through File -> Exit, task tray icon, or task manager for your system. This tool changes the paths of existing torrents in qBittorrent in a bulk fashion.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |