Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool to bulk modify SavePaths (to help Linux and Windows migration) #9912

Open
slrslr opened this issue Nov 24, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@slrslr
Copy link

commented Nov 24, 2018

qBittorrent version and Operating System

4.1.4

Issue description

Migrating between Windows and Linux is almost impossible for a regular user
Dear developers, i spent some time trying to do search and replace in hundreds of qbt config (fast resume?) files so it match modified paths structure on Linux vs Windows. (Windows vs Linux has different paths to a drives and also use different slashes / vs \), but i was not successful. qbt always somehow malformed the paths and Category save paths i could not modify by editting config. files (not found the way).

Proposal on solution

It would be of great help if you either:

A) allow all the qbittorrent settings (i mean save paths of torrents and of categories and tags) be better formated and easily editable so one can manualy do some bulk search and replace in config files to adjust save paths to fit different operating system (Windows vs Linux has different paths to a drive or use different slashes / vs \)

B) integrate into qbt a tool that will be entitled "Import qbt settings". Then user will be invited to select path to the directory which is the backup of his qbt settings folder. (I mean example i am on Linux and i enter path /media/user/datadisk/qBittorrent-appdata-backup-from-windows) once selected, the tool will detect all save paths (def. save path, all save paths for all torrents including Categories/tags save paths) and user will be allowed to convert all slashes in paths using single button (Windows slashes \ into Linux slashes /)
Then next click of button would convert it back as it was.
Then user will use search and replace fields to bulk replace in the paths, example:
E:\ to /home/username/media/datadisk/
Then there will be third function whill will verify resulting paths contains payload files (i mean just filenames would be OK, not full recheck). If not found payload files, it will allow user to manually select save path or manually enter path.
Then user click "Import qbt config". And it will copy over the qbt config folder and do the modification of paths. Then user will need to restart qbt. Old config foldler will be renamed to qBittorrent_old_datehere.

RESULT: when migrating between operating systems, user just need to backup one folder (qbt configuration, fast resume files etc) and then use Importing tool that will use these data to create new qbt config folder while allowing user to bulk modify save paths.


In the meantime there is a workaround, but it still requires manual editting (creating many torrent Categories manually): https://github.com/AlexP11223/qBTConverter so it is not good solution and is burried deep in the web, not conveniently integrated in qbt.

@ctminime

This comment has been minimized.

Copy link

commented Feb 20, 2019

I wrote a script in Python to modify the fastresume files. You can find it here:
https://github.com/ctminime/QB_Migrate_to_Linux
I haven't actually migrated my QBittorrent to Linux yet so I can't verify that it works completely yet. However, I didn't encounter any issues with the modification to almost 500 fastresume files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.