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?
You can’t hard link across docker volumes. In the second example, you need to remove the /media/movies and /media/downloads volumes, only keep /media.
After fixing this, only future downloads will be hard links. Use a deduplication tool like jdupes to create hard links for the already downloaded files.
Thank you!