rtorrent - torrent directory change, torrent's still pointing to old directory...
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 6 of 6
  1. #1

    Join Date
    Aug 2009
    Location
    The Canadas
    Posts
    1,002

    Default rtorrent - torrent directory change, torrent's still pointing to old directory...

    I'm running rtorrent, and have recently done some consolidation on my server, which involved the torrents moving.

    Looking at the torrents through rutorrent, they all seem to think the actual data is in the old location. I thought that the new .rtorrent.rc file would point things to the new location, but it isn't. Not for the old torrents anyway. I've created sym links in the old location pointing to the new, but is there a way to globally change where the torrents think the data files are? Is there any sort of graceful solution to this problem?

    Thanks for any input.

    "I have called this principle, by which each slight variation, if useful, is preserved, by the term of Natural Selection."
    - Charles Darwin


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Jun 2011
    Location
    Neither here nor there.
    Posts
    1,039

    Default

    hmm if all the torrents are in the same folder maybe change the default save path to it... then throw all the .torrent files in the watch directory... it will have to run a hash check on everything again.

    Don't know of another way. Should wait for more responses")

  4. #3

    Join Date
    Apr 2012
    Location
    Absolute or relative?
    Posts
    1,335

    Default

    First you have to understand that rtorrent does not controls your downloaded files directly what's important to it is if they are in the right place or not. Basically controls .torrent files that have this information. So you can move your files as soon as the .torrent points to them.

    I'm also having problems with that but I think I may have find a way: move your files (using mv) and after that tell rtorrent that these files were moved by pointing the new location. The command xmlrpc will help you do that:

    To get a list of methods (there are a lot of them)
    xmlrpc localhost system.listMethods
    You cand do that using 3 methods:

    1) Get a list of your downloads with download_list method
    xmlrpc localhost download_list

    Result is something like this:
    Array of 11 items:
    Index 0 String: '8A7490BE5D8F18AD831E111E9553799E56DC8677'
    Index 1 String: '1C7C47E71EF5D524AFA5D805C13B7B63B3342072'
    Index 2 String: 'AD7E5905DFC96DC9A7B757AFFEEE0F8FE9BF6B00'
    Index 3 String: 'AD1FD7FA1DCFFB9C2FB5B3F50CC98A1489871926'
    Index 4 String: 'E687EC9EC71E3D8B921CD4CC526B6EFB44157911'
    Index 5 String: 'F17F413B3D9A5719026F59DCACFBEE800EB7A23B'
    Index 6 String: '605F61DD008423EE2A8CD9AFB6BCADE695CEC63E'
    Index 7 String: 'DC50126AA9B0E04EADEDB5BEE966314F60FBB5D8'
    Index 8 String: '6793681FF4BFF00606A26F4DE98A7DD6C0C563D3'
    Index 9 String: 'F0C38EE5A248A5E82648BF3712864A878964225D'
    Index 10 String: '738AAA97EF869804885A693F9EE12A0E5E827C71'
    2) Get the name of torrent using d.name method:
    xmlrpc localhost d.name AD1FD7FA1DCFFB9C2FB5B3F50CC98A1489871926

    Result:
    String: 'Flying Swords of Dragon Gate.2011.BDRip.AC3.x264-LooKMaNe'
    3) Inform new path of a specific download using d.set_directory method:
    xmlrpc localhost d.set_directory AD1FD7FA1DCFFB9C2FB5B3F50CC98A1489871926 /new/directory/

  5. #4

    Join Date
    Jun 2011
    Posts
    8,245
    Blogs
    2

    Default



    The rtorrent configuration file i.e. .rtorrent.rc usually specifies what directory to put new torrents in. But as you are finding, existing torrents have the directory path written into the .torrent file.

    If you just have a small number of torrents, you could simply, right click in rutorrent > save to. And choose the new directory. Don't select copy and then choose force recheck. For a larger number of torrents, you can symlink as you have done or you may wish to use a *nix aware text editor to batch edit the directory path in the .torrent files.
    Fortune and love favour the brave .-. Ovid ....

  6. #5

    Join Date
    Aug 2009
    Location
    The Canadas
    Posts
    1,002

    Default

    Quote Originally Posted by copper View Post


    The rtorrent configuration file i.e. .rtorrent.rc usually specifies what directory to put new torrents in. But as you are finding, existing torrents have the directory path written into the .torrent file.

    If you just have a small number of torrents, you could simply, right click in rutorrent > save to. And choose the new directory. Don't select copy and then choose force recheck. For a larger number of torrents, you can symlink as you have done or you may wish to use a *nix aware text editor to batch edit the directory path in the .torrent files.
    Yeah, I was about to go old school on those .torrent files with sed, but after some testing I couldn't get rtorrent to pick up the torrents properly.

    I think I'm relegated to reloading the .torrent files from their original source. Fortunately, I had all of the originals in the old watch directory and had made a copy. Unfortunately, labels and such are going to be gone.

    Thanks for the help.
    "I have called this principle, by which each slight variation, if useful, is preserved, by the term of Natural Selection."
    - Charles Darwin

  7. #6

    Join Date
    Apr 2012
    Location
    Absolute or relative?
    Posts
    1,335

    Default


Similar Threads

  1. Replies: 4
    Last Post: August 8th, 2011, 01:37 PM
  2. Error: torrent wasn't passed to rTorrent.
    By vlabakje in forum Help
    Replies: 8
    Last Post: July 21st, 2011, 09:22 PM
  3. Torrent wasn't passed to rTorrent
    By oki in forum Help
    Replies: 13
    Last Post: December 16th, 2010, 04:02 AM
  4. Replies: 1
    Last Post: December 10th, 2010, 06:42 AM
  5. Torrent Invites = THE place to be.
    By Golliath in forum BitTorrent Discussion
    Replies: 4
    Last Post: October 9th, 2008, 01:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •