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?
1. Posts must be related to the discussion of digital piracy
2. Don’t request invites, trade, sell, or self-promote
3. Don’t request or link to specific pirated titles, including DMs
4. Don’t submit low-quality posts, be entitled, or harass others
📜 c/Piracy Wiki (Community Edition):
💰 Please help cover server costs.
Ko-fi | Liberapay |
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!