rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.19k stars 415 forks source link

How to restore accidentally deleted torrent? #1017

Closed ragnarov closed 4 years ago

ragnarov commented 4 years ago

It seems torrent's data has not been deleted. How could I restore it and start downloading from last time? Also how can I prevent or at least get a confirmation before ctrl+d deletes a torrent?

piramiday commented 4 years ago

It seems torrent's data has not been deleted. How could I restore it and start downloading from last time?

you should add the torrent to rtorrent once again, making sure you are specifying the exact same position on disk. rtorrent will then start hash-checking the content, detecting how much has been downloaded and how much is missing.

Also how can I prevent or at least get a confirmation before ctrl+d deletes a torrent?

take a look at rtorrent-ps -- further reading at https://rtorrent-ps.readthedocs.io/en/latest -- which heavily modifies rtorrent to accomplish, amongst other things, key rebindings.

rtorrent, as far as I know, is not capable of rebinding keys. :confused: I fully agree with you that would be a great option! it's already being tracked in #817, although it's an old issue. for me the most annoying mishap is an accidental press of CTRL-Q.