Upgrading my Raspberry Pi from Raspian-Debian-Jessie to Raspian-Debian-Buster I also made the leap from Deluge v1.3.x to 2.0.x. Until I found this post I was not able to get all my old torrents to show up on the new system. Initially, after backing up the ~/.config/deluge/ directory I copied over the ~/.config/deluge/session.state file and ~/.config/deluge/state/ directory, then used the code above but Deluge was still not seeing all my torrents.spookymulder84 wrote:I wanted to say thank you very much for this python code! It really worked for me!! Much love!!!mhertz wrote: In meantime, tobbez posted some python code to translate your state file:Code: Select all
import pickle with open('torrents.state', 'rb') as f: d = pickle.load(f, encoding='latin1') with open('torrents.state', 'wb') as f2: pickle.dump(d, f2)
None of the torrents would show up for me but now it's all here!
At that point I removed the ~/.config/deluge/session.state file and ~/.config/deluge/state/ directory before copying them over from the old system again. This time, after using the code above, deluged is showing all the torrents. It looks like I will have to Force Recheck all of them, but at least they are all there.
EDIT: Actually, no I am not going to have to Force Recheck them, they were all paused I so far I have only had to Resume them for them to start seeding; doing them in chunks in case I need to Force Recheck some of them).
Thanks again @spookymulder84, @mhertz and @tobbez!
Shadalalrk