I always wondered why hardlinks in radarr/ sonarr and qbittorrent didn’t work for me. I think the problem was that I mapped the directories as below:

    volumes:
      - ./config:/config
      - ./downloads:/downloads
      - ./movies:/movies

whereas I should’ve mapped them as:

    volumes:
      - ./config:/config
      - ./media:/media 
      - ./media/downloads:/media/downloads
      - ./media/movies:/media/movies

Now, how do I replace all the duplicate files in /downloads with the links?

  • Vendetta9076@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    8 months ago

    What you should actually do is just mount /media.

    That way qbit and radarr will see the folders as the same structure.

    Not sure how to remove the duplicate files though

    • William@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 months ago

      To expand upon that, I had something similar to the OP’s setup at one point, and I found things worked a lot better when the files could be moved on the same volume, rather than appearing as separate volumes (because they were mounted separately). I ended up re-engineering my whole setup for that and it’s much faster now.

      As for duplicates… I assume this is so you can continue seeding after the file has been moved? I can’t think of anything that would fit the bill for that off the top of my head. Ideally, I think you’d want QBT to just start serving from the new location instead, though I admit hard links does sound like a solution that could work.

      And after Googling, it seems like it already does hard links for torrents for this exact reason. I think if you just map /media (and drop the 2 maps you have after that) things will work like you want.